function hook_update

cis7 node.api.php hook_update($node)
cle7 node.api.php hook_update($node)
elmsmedia7 node.api.php hook_update($node)
icor7 node.api.php hook_update($node)
meedjum_blog7 node.api.php hook_update($node)
mooc7 node.api.php hook_update($node)

Respond to updates to a node.

This hook is invoked only on the module that defines the node's content type (use hook_node_update() to act on all node updates).

This hook is invoked from node_save() after the node is updated in the node table in the database, before field_attach_update() is called, and before hook_node_update() is invoked.


$node: The node that is being updated.

Related topics

99 functions implement hook_update()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

admin_menu_menu_link_update in sites/all/modules/ulmus/admin_menu/admin_menu.module
Implements hook_menu_link_update().
auto_nodetitle_operations_update in sites/all/modules/ulmus/auto_nodetitle/auto_nodetitle.module
Callback function for updating node titles.
bakery_user_update in sites/all/modules/ulmus/bakery/bakery.module
Implements hook_user_update().
book_form_update in modules/book/book.module
Renders a new parent page select element when the book selection changes.
book_node_type_update in modules/book/book.module
Implements hook_node_type_update().

... See full list

4 invocations of hook_update()
EntityAPIController::save in sites/all/modules/ulmus/entity/includes/
Implements EntityAPIControllerInterface.
field_attach_update in modules/field/
Save field data for an existing entity.
update_check_requirements in ./update.php
Checks update requirements and reports errors and (optionally) warnings.
user_save in modules/user/user.module
Save changes to a user account or add a new user.


modules/node/node.api.php, line 1211
Hooks provided by the Node module.


function hook_update($node) {
  db_update('mytable')->fields(array('extra' => $node->extra))->condition('nid', $node->nid)->execute();