You are here

function hook_post_action_example_node_postsave in Hook Post Action 7

Same name and namespace in other branches
  1. 8 hook_post_action_example/hook_post_action_example.module \hook_post_action_example_node_postsave()

Gets called after a node has been inserted/updated/deleted to database.

Parameters

$node: A node object

string $op: An string containing the operating that's taking place (insert/update/delete)

See also

hook_node_postinsert()

hook_node_postupdate()

hook_node_postdelete()

hook_node_postsave()

File

hook_post_action_example/hook_post_action_example.module, line 89

Code

function hook_post_action_example_node_postsave($node, $op) {
  watchdog('hook_post_action_test', "The {$op}d node {$node->type} id is {$node->nid} from " . __FUNCTION__);
}