function hook_entity_postdelete in Hook Post Action 7
Same name and namespace in other branches
- 8 hook_post_action.api.php \hook_entity_postdelete()
Gets called after an entity has been deleted from database.
Parameters
$entity: An entity object
string $entity: An string containing entity type name
See also
File
- ./
hook_post_action.api.php, line 89 - Documents API functions for hook_post_action module.
Code
function hook_entity_postdelete($entity, $entity_type) {
list($id) = entity_extract_ids($entity_type, $entity);
watchdog('hook_post_action_test', 'The deleted entity @type id is @id from @function.', array(
'@id' => $id,
'@type' => $entity_type,
'@function' => __FUNCTION__,
));
}