You are here

public function LdapAuthorizationConsumerConfAdmin::delete in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::delete()
  2. 7 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::delete()
1 call to LdapAuthorizationConsumerConfAdmin::delete()
LdapAuthorizationConsumerConfAdmin::drupalFormSubmit in ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php

File

ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php, line 76

Class

LdapAuthorizationConsumerConfAdmin
LDAP Authorization Consumer Configration Admin Class

Code

public function delete() {
  if ($this->consumerType) {
    $this->inDatabase = FALSE;
    return db_delete('ldap_authorization')
      ->condition('consumer_type', $this->consumerType)
      ->execute();
  }
  else {
    return FALSE;
  }
}