1 options.module | options_field_settings_validate($form, &$form_state) |
Form #validate callback for Field UI forms that use an options element.
File
- core/
modules/ field/ modules/ options/ options.module, line 586 - Defines selection, check box and radio button widgets for text and numeric fields.
Code
function options_field_settings_validate($form, &$form_state) {
if (!form_get_errors()) {
// Set allowed values.
form_set_value(
$form['field']['settings']['allowed_values'],
$form['field']['settings']['allowed_values']['#value']['options'],
$form_state
);
}
}