You are here

function _entityreference_field_settings_validate in Entity reference 8

Same name and namespace in other branches
  1. 7 entityreference.module \_entityreference_field_settings_validate()
1 string reference to '_entityreference_field_settings_validate'
entityreference_field_settings_form in ./entityreference.module
Implements hook_field_settings_form().

File

./entityreference.module, line 292
Provides a field that can reference other entities.

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']);
}