1 entityreference.module _entityreference_field_settings_validate($form, &$form_state)

Implements hook_validate().

File

core/modules/entityreference/entityreference.module, line 503
Entityreference primary module file.

Code

function _entityreference_field_settings_validate($form, &$form_state) {
  // Store the new values in the form state.
  $field = $form['#field'];
  if (isset($form_state['values']['field'])) {
    $field['settings'] = $form_state['values']['field']['settings'];
  }
  $form_state['entityreference']['field'] = $field;

  unset($form_state['values']['field']['settings']['handler_submit']);
}