public function RedhenContactType::delete in RedHen CRM 7
Permanently deletes the entity.
Parameters
bool $delete_entities: Indicates if all contacts of this type should be deleted as well.
Overrides Entity::delete
See also
File
- modules/
redhen_contact/ lib/ redhen_contact_type.entity.inc, line 51 - Redhen Contact type classes.
Class
- RedhenContactType
- RedhenContactType class.
Code
public function delete($delete_entities = FALSE) {
$id = $this
->identifier();
if (isset($id)) {
entity_get_controller($this->entityType)
->delete(array(
$id,
), NULL, $delete_entities);
}
}