function ldapdata_ldapauth_admin_settings_submit in LDAP integration 6
Submit hook for the ldapauth settings form. Handles ui addition
1 string reference to 'ldapdata_ldapauth_admin_settings_submit'
- ldapdata_form_alter in ./
ldapdata.module - Implementation of hook_form_alter().
File
- ./
ldapdata.module, line 1008 - ldapdata provides data maping against ldap server.
Code
function ldapdata_ldapauth_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_disable_picture_change', $values['ldapdata_disable_picture_change']);
break;
case t('Reset to defaults'):
variable_del('ldapdata_disable_picture_change');
break;
}
}