function hook_node_type_delete

Respond to node type deletion.

This hook is invoked from node_type_delete() after the node type is removed from the database.


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

Related topics

1 function implements hook_node_type_delete()

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

comment_node_type_delete in drupal/modules/comment/comment.module
Implements hook_node_type_delete().
1 invocation of hook_node_type_delete()
node_type_delete in drupal/modules/node/node.module
Deletes a node type from the database.


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


function hook_node_type_delete($info) {
  variable_del('comment_' . $info->type);