...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
- Класс: \CCrmViewHelper
- Вызов: CCrmViewHelper::GetFormFieldNames
static function GetFormFieldNames($formID) { if($formID === '') { return array(); } $formOptions = CUserOptions::GetOption('main.interface.form', $formID, array()); if(!is_array($formOptions) || empty($formOptions)) { return array(); } $formFieldNames = array(); if(!(isset($formOptions['settings_disabled']) && $formOptions['settings_disabled'] === 'Y') && is_array($formOptions['tabs'])) { foreach($formOptions['tabs'] as $tab) { $tabID = isset($tab['id']) ? $tab['id'] : ''; if($tabID !== 'tab_1') { continue; } $fields = isset($tab['fields']) ? $tab['fields'] : null; if(!is_array($fields)) { continue; } foreach($fields as $field) { $type = isset($field['type']) ? $field['type'] : ''; if($type === 'section') { continue; } $fieldID = isset($field['id']) ? $field['id'] : ''; if($fieldID === '') { continue; } $fieldName = isset($field['name']) ? $field['name'] : ''; if($fieldName !== '') { $formFieldNames[$fieldID] = $fieldName; } } } } return $formFieldNames; }