You are here

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

Same name and namespace in other branches
  1. 8.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::delete()
  2. 7.2 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 120

Class

LdapAuthorizationConsumerConfAdmin
LDAP Authorization Consumer Configration Admin Class

Code

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