You are here

function ldapauth_admin_deactivate in LDAP integration 5.2

Same name and namespace in other branches
  1. 5 ldapauth.module \ldapauth_admin_deactivate()
  2. 6 ldapauth.admin.inc \ldapauth_admin_deactivate()
1 string reference to 'ldapauth_admin_deactivate'
ldapauth_menu in ./ldapauth.module
Implements hook_menu()

File

./ldapauth.module, line 188

Code

function ldapauth_admin_deactivate($ldap_name) {
  $ldap_name = arg(4);

  // de-activate the config
  db_query("UPDATE {ldapauth} SET status = '%s'WHERE name = '%s'", "", $ldap_name);
  drupal_set_message(t('LDAP Configuration %config has been de-activated.', array(
    '%config' => $ldap_name,
  )));
  watchdog('ldap', t('ldapauth: ldap config %config de-activated.', array(
    '%config' => $ldap_name,
  )));
  drupal_goto('admin/settings/ldapauth');
}