1 options.module | options_field_settings_after_build($element, &$form_state) |
Element #after_build callback for the options list in Field UI.
File
- core/
modules/ field/ modules/ options/ options.module, line 575 - Defines selection, check box and radio button widgets for text and numeric fields.
Code
function options_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;
}