function hook_post_action_example_entity_postupdate in Hook Post Action 7
Same name and namespace in other branches
- 8 hook_post_action_example/hook_post_action_example.module \hook_post_action_example_entity_postupdate()
Gets called after an entity has been updated in database.
Parameters
$entity: An entity object
string $entity: An string containing entity type name
See also
File
- hook_post_action_example/
hook_post_action_example.module, line 53
Code
function hook_post_action_example_entity_postupdate($entity, $entity_type) {
list($id) = entity_extract_ids($entity_type, $entity);
watchdog('hook_post_action_test', "The updated entity {$entity_type} id is {$id} from " . __FUNCTION__);
}