You are here

function editablefields_field_ui_display_overview_multistep_submit in Editable Fields 7

Form submit handler for AJAX change of the fallback formatter.

1 string reference to 'editablefields_field_ui_display_overview_multistep_submit'
editablefields_field_formatter_settings_form in ./editablefields.module
Implements hook_field_formatter_settings_form().

File

./editablefields.module, line 171
Editable fields module.

Code

function editablefields_field_ui_display_overview_multistep_submit($form, &$form_state) {
  $trigger = $form_state['triggering_element'];
  $op = $trigger['#op'];

  // Store the saved settings.
  $field_name = $trigger['#field_name'];
  $values = $form_state['values']['fields'][$field_name]['settings_edit_form']['settings'];
  $form_state['formatter_settings'][$field_name] = $values;
  $form_state['rebuild'] = TRUE;
}