You are here

function ldapauth_admin_activate in LDAP integration 5.2

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

File

./ldapauth.module, line 198

Code

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

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