You are here

function ldapdata_admin_settings_submit in LDAP integration 6

Submit hook for the settings form.

File

./ldapdata.admin.inc, line 49
Module admin page callbacks.

Code

function ldapdata_admin_settings_submit($form, &$form_state) {
  $op = $form_state['clicked_button']['#value'];
  $values = $form_state['values'];
  switch ($op) {
    case t('Save configuration'):
      variable_set('ldapdata_sync', $values['ldapdata_sync']);
      drupal_set_message(t('The configuration options have been saved.'));
      break;
    case t('Reset to defaults'):
      variable_del('ldapdata_sync');
      drupal_set_message(t('The configuration options have been reset to their default values.'));
      break;
  }
}