You are here

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

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

Class

LdapQueryAdmin

Code

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