You are here

function feeds_ui_mapping_form_multistep_submit in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_mapping_form_multistep_submit()

Submit callback for a per mapper configuration form. Switches between edit and summary mode.

1 string reference to 'feeds_ui_mapping_form_multistep_submit'
feeds_ui_mapping_settings_form in feeds_ui/feeds_ui.admin.inc
Per mapper configuration form that is a part of feeds_ui_mapping_form().

File

feeds_ui/feeds_ui.admin.inc, line 653
Contains all page callbacks, forms and theming functions for Feeds administrative pages.

Code

function feeds_ui_mapping_form_multistep_submit($form, &$form_state) {
  $trigger = $form_state['triggering_element'];
  switch ($trigger['#op']) {
    case 'edit':
      $form_state['mapping_settings_edit'] = $trigger['#i'];
      break;
    case 'update':
      $values = $form_state['values']['config'][$trigger['#i']]['settings'];
      $form_state['mapping_settings'][$trigger['#i']] = $values;
      unset($form_state['mapping_settings_edit']);
      break;
    case 'cancel':
      unset($form_state['mapping_settings_edit']);
      break;
  }
  $form_state['rebuild'] = TRUE;
}