You are here

public function ServicesClientWebformMapping::configFormSubmit in Services Client 7

Implements configFormSubmit().

Overrides ServicesClientPlugin::configFormSubmit

File

plugins/ServicesClientWebformMapping.inc, line 56
Defines the form configs for the Webform mappings in Services Client.

Class

ServicesClientWebformMapping
@file

Code

public function configFormSubmit(&$form, &$form_state) {
  parent::configFormSubmit($form, $form_state);
  if (isset($form_state['values']['field_mapping'])) {
    $form_state['config']['field_mapping'] = $form_state['values']['field_mapping'];
  }
  if (isset($form_state['values']['field_mapping_empty'])) {
    $form_state['config']['field_mapping_empty'] = $form_state['values']['field_mapping_empty'];
  }
  if (isset($form_state['values']['file_field_name'])) {
    $form_state['config']['file_field_name'] = $form_state['values']['file_field_name'];
  }
  if (isset($form_state['values']['node_type_mapping'])) {
    $form_state['config']['node_type_mapping'] = $form_state['values']['node_type_mapping'];
  }
}