function options_element_field_settings_after_build in Options Element 7
Element #after_build callback for the options list in Field UI.
1 string reference to 'options_element_field_settings_after_build'
- _options_element_add_allowed_values_element in ./
options_element.module - Add options_element widget to form.
File
- ./
options_element.module, line 230 - Defines an "options" form element type for entering select list options.
Code
function options_element_field_settings_after_build($element, &$form_state) {
// Add original data for validating.
$element['options_field'] = array_merge($element['options_field'], $element['#original']);
// Standard validate.
$element['options_field']['#element_validate'][] = 'list_allowed_values_setting_validate';
return $element;
}