You are here

public function LdapQueryAdmin::delete in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_query/LdapQueryAdmin.class.php \LdapQueryAdmin::delete()
  2. 7 ldap_query/LdapQueryAdmin.class.php \LdapQueryAdmin::delete()
1 call to LdapQueryAdmin::delete()
LdapQueryAdmin::drupalFormSubmit in ldap_query/LdapQueryAdmin.class.php

File

ldap_query/LdapQueryAdmin.class.php, line 147

Class

LdapQueryAdmin

Code

public function delete($qid) {
  if ($qid == $this->qid) {
    $this->inDatabase = FALSE;
    if (module_exists('ctools')) {
      ctools_include('export');
      ctools_export_load_object_reset('ldap_query');
    }
    return db_delete('ldap_query')
      ->condition('qid', $qid)
      ->execute();
  }
  else {
    return FALSE;
  }
}