You are here

function ldapauth_admin_delete_submit in LDAP integration 5.2

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

File

./ldapauth.module, line 526

Code

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