function hook_node_type_update

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

Respond to node type updates.

This hook is invoked from node_type_save() after the node type is updated in the database.

Parameters

$info: The node type object that is being updated.

Related topics

8 functions implement hook_node_type_update()

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

book_node_type_update in modules/book/book.module
Implements hook_node_type_update().
clone_node_type_update in sites/all/modules/ulmus/node_clone/clone.module
Implementation of hook_node_type_update().
comment_node_type_update in modules/comment/comment.module
Implements hook_node_type_update().
diff_node_type_update in sites/all/modules/ulmus/diff/diff.module
Implements hook_node_type_update().
ds_node_type_update in sites/all/modules/ulmus/ds/ds.module
Implements hook_node_type_update().

... See full list

1 invocation of hook_node_type_update()
node_type_save in modules/node/node.module
Saves a node type to the database.

File

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

Code

function hook_node_type_update($info) {
  if (!empty($info->old_type) && $info->old_type != $info->type) {
    $setting = variable_get('comment_' . $info->old_type, COMMENT_NODE_OPEN);
    variable_del('comment_' . $info->old_type);
    variable_set('comment_' . $info->type, $setting);
  }
}