function hook_post_action_example_entity_postsave 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_postsave()
Gets called after an entity has been inserted/updated/deleted to database.
Parameters
$entity: An entity object
string $entity: An string containing entity type name
string $op: An string containing the operating that's taking place (insert/update/delete)
See also
File
- hook_post_action_example/
hook_post_action_example.module, line 17
Code
function hook_post_action_example_entity_postsave($entity, $entity_type, $op) {
list($id) = entity_extract_ids($entity_type, $entity);
watchdog('hook_post_action_test', "The {$op}d entity {$entity_type} id is {$id} from " . __FUNCTION__);
}