function _entityreference_field_settings_validate in Entity reference 7
Same name and namespace in other branches
- 8 entityreference.module \_entityreference_field_settings_validate()
Implements hook_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 554 - 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']);
}