You are here

function defaultcontent_node_delete in Default Content 7

Same name and namespace in other branches
  1. 7.2 defaultcontent.module \defaultcontent_node_delete()

Implements of hook_node_delete().

Node that the machine_name does not have a node now but we keep it around so we know not to load the default

File

./defaultcontent.module, line 26
Module file for the Default content module which allow export and import of default content in a Drupal site.

Code

function defaultcontent_node_delete($node) {
  if (isset($node->machine_name)) {
    defaultcontent_set_default($node->machine_name, NULL);
  }
}