You are here

function signup_node_delete in Signup 7

Implements hook_node_delete().

File

./signup.module, line 810
The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…

Code

function signup_node_delete($node) {

  // Clean up the signup tables for the deleted node.
  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("DELETE FROM {signup} WHERE nid = %d", $node->nid) */
  db_delete('signup')
    ->condition('nid', $node->nid)
    ->execute();

  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("DELETE FROM {signup_log} WHERE nid = %d", $node->nid) */
  db_delete('signup_log')
    ->condition('nid', $node->nid)
    ->execute();
}