daily_delete

Definition

daily_delete(&$node)
daily/daily_container.inc, line 189

Description

Implementation of hook_delete(): Respond to node deletion for node type Daily Container.

Updates the database table {daily_container}

Related topics

Namesort iconDescription
Daily Container node type functionsAll functions which define the node type Daily Container.
Hook implementationsFunctions that implement standard Drupal hooks.

Code

<?php
function daily_delete(&$node) {
  // We use the nid field here because we need to remove all revisions
  // and there is no way to get the revision id's.
  // Hopefully, this will change in the future.
  db_query("DELETE FROM {daily_container} WHERE nid = %d", $node->nid);
}
?>