You are here

function ldapauth_admin_delete_submit in LDAP integration 6

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

Submit hook for the LDAP server delete page.

File

./ldapauth.admin.inc, line 628
Module admin page callbacks.

Code

function ldapauth_admin_delete_submit($form, &$form_state) {
  $values = $form_state['values'];
  if ($values['confirm'] && $values['sid']) {
    ldapauth_server_delete($values['sid']);
  }
  drupal_goto('admin/settings/ldap/ldapauth/list');
}