Skip navigation
Help

hook_node_type_delete

7 node.api.php hook_node_type_delete($info)

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()

1 invocation of hook_node_type_delete()

File

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

Code

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