You are here

function entityreference_multiple_callback in Entity reference multiple display 7

Ajax callback for the field formatter settings form.

1 string reference to 'entityreference_multiple_callback'
entityreference_multiple_field_formatter_settings_form in ./entityreference_multiple.module
Implements hook_field_formatter_settings_form().

File

./entityreference_multiple.module, line 126
Extend entity reference formatter with an option to separate elements display with specific view_modes.

Code

function entityreference_multiple_callback($form, $form_state) {
  $field_name = $form_state['triggering_element']['#attributes']['rel'];
  return $form['fields'][$field_name]['format']['settings_edit_form']['settings']['view_mode_multiple'];
}