hook_node_type_delete

Definition

hook_node_type_delete($info)
drupal/modules/node/node.api.php, line 910

Description

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

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

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