You are here

function ldapauth_admin_deactivate_submit in LDAP integration 5

Same name and namespace in other branches
  1. 6 ldapauth.admin.inc \ldapauth_admin_deactivate_submit()

File

./ldapauth.module, line 215

Code

function ldapauth_admin_deactivate_submit($form_id, $form_values) {
  if ($sid = $form_values['sid']) {

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