You are here

function ldapauth_admin_delete_submit in LDAP integration 5

Same name and namespace in other branches
  1. 5.2 ldapauth.module \ldapauth_admin_delete_submit()
  2. 6 ldapauth.admin.inc \ldapauth_admin_delete_submit()

File

./ldapauth.module, line 600

Code

function ldapauth_admin_delete_submit($form_id, $form_values) {
  if ($sid = $form_values['sid']) {
    db_query("DELETE FROM {ldapauth} WHERE sid = %d", $sid);
    drupal_set_message(t('LDAP Configuration has been deleted.'));
    watchdog('ldap', t('ldapauth: ldap config %config deleted.', array(
      '%config' => $form_values['sid'],
    )));
  }
  return 'admin/settings/ldapauth';
}