function ldapauth_admin_activate_submit in LDAP integration 5
Same name and namespace in other branches
- 6 ldapauth.admin.inc \ldapauth_admin_activate_submit()
File
- ./
ldapauth.module, line 246
Code
function ldapauth_admin_activate_submit($form_id, $form_values) {
if ($sid = $form_values['sid']) {
// activate the config
db_query("UPDATE {ldapauth} SET status = %d WHERE sid = %d", 1, $sid);
drupal_set_message(t('LDAP Configuration %config has been activated.'));
watchdog('ldap', t('ldapauth: ldap config %config activated.', array(
'%config' => $sid,
)));
}
drupal_goto('admin/settings/ldapauth');
}