hook_node_type_delete($info)
drupal/modules/node/node.api.php, line 910
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.
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
function hook_node_type_delete($info) {
variable_del('comment_' . $info->type);
}