public static function ExportSettingsToXML($BID, $arWhat) { $xml = ''; if ($BID>0 && is_array($arWhat) && !empty($arWhat)) { $value = CUserOptions::GetOption('form', 'form_element_' . $BID, true); if (in_array('forms', $arWhat) && is_array($value)) { $xml .= ''; $xml .= ''; $xml .= ''."\n"; $xml .= ''; $xml .= ''; $xml .= ''."\n"; } } return $xml; }