You are here

function uuidreference_field_settings_ajax_callback in UUID reference field 7

Ajax callback for the handler settings form.

See also

entityreference_field_settings_form()

1 string reference to 'uuidreference_field_settings_ajax_callback'
uuidreference_field_settings_form in ./uuidreference.module
Implements hook_field_settings_form().

File

./uuidreference.module, line 215

Code

function uuidreference_field_settings_ajax_callback($form, $form_state) {
  if (!empty($form['field']['target_bundles'])) {
    return $form['field']['target_bundles'];
  }
  else {
    return $form['field']['settings']['target_bundles'];
  }
}