hook_node_type_delete

  1. location
    1. 7.3 location_addanother.module
  2. drupal
    1. 8
    2. 7
Versions
8 – 7 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

Code

modules/node/node.api.php, line 1004

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