You are here

public function ServicesClientUserMapping::configFormSubmit in Services Client 7

Implements configFormSubmit().

Overrides ServicesClientPlugin::configFormSubmit

File

plugins/ServicesClientUserMapping.inc, line 47
Defines the form configs for the User mappings in Services Client.

Class

ServicesClientUserMapping
@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']['user_sync_roles'])) {
    $form_state['config']['user_sync_roles'] = $form_state['values']['user_sync_roles'];
  }
}