function ldapsync_admin_settings_submit in LDAP integration 6
Submit hook for the settings form.
File
- ./
ldapsync.admin.inc, line 121 - Module admin page callbacks.
Code
function ldapsync_admin_settings_submit($form, &$form_state) {
$values = $form_state['values'];
variable_set('ldapsync_time_interval', $values['ldapsync_time_interval']);
variable_set('ldapsync_filter', trim($values['ldapsync_filter']));
variable_set('ldapsync_missing_users_action', $values['ldapsync_missing_users_action']);
variable_set('ldapsync_load_user_by', $values['ldapsync_load_user_by']);
variable_set('ldapsync_filter_append_default', $values['ldapsync_filter_append_default']);
variable_set('ldapsync_existing_only', $values['ldapsync_existing_only']);
variable_set('ldapsync_login_conflict', $values['ldapsync_login_conflict']);
drupal_set_message(t('Settings saved'));
}