You are here

function options_element_field_settings_validate in Options Element 7

Form #validate callback for Field UI forms that use an options element.

1 string reference to 'options_element_field_settings_validate'
_options_element_add_allowed_values_element in ./options_element.module
Add options_element widget to form.

File

./options_element.module, line 241
Defines an "options" form element type for entering select list options.

Code

function options_element_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);
  }
}