public function LdapServerAdmin::delete in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::delete()
- 7.2 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::delete()
1 call to LdapServerAdmin::delete()
- LdapServerAdmin::drupalFormSubmit in ldap_servers/
LdapServerAdmin.class.php
File
- ldap_servers/
LdapServerAdmin.class.php, line 142
Class
Code
public function delete($sid) {
if ($sid == $this->sid) {
$result = db_delete('ldap_servers')
->condition('sid', $sid)
->execute();
if (module_exists('ctools')) {
ctools_export_load_object_reset('ldap_servers');
// invalidate cache
}
$this->inDatabase = FALSE;
return $result;
}
else {
return FALSE;
}
}