function hook_node_type_update

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
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);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.