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

Implements hook_validate().

File

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

Code

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