You are here

function publication_date_node_delete in Publication Date 7

Same name and namespace in other branches
  1. 7.2 publication_date.module \publication_date_node_delete()

Implements hook_node_delete().

File

./publication_date.module, line 49
Add a field to nodes containing the publication date.

Code

function publication_date_node_delete($node) {

  // Delete the publication date for the deleted node.
  db_delete('publication_date')
    ->condition('nid', $node->nid)
    ->execute();
}