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.
Parameters
$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 modules/
comment/ comment.module - Implements hook_node_type_delete().
1 invocation of hook_node_type_delete()
- node_type_delete in modules/
node/ node.module - Deletes a node type from the database.
File
-
modules/
node/ node.api.php, line 1033
Code
function hook_node_type_delete($info) {
variable_del('comment_' . $info->type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.