You are here

function webform_delete in Webform 5

Same name and namespace in other branches
  1. 5.2 webform.module \webform_delete()
  2. 6.2 webform.module \webform_delete()

Implemenation of hook_delete().

File

./webform.module, line 253

Code

function webform_delete(&$node) {
  db_query("DELETE FROM {webform} WHERE nid = %d", $node->nid);
  db_query("DELETE FROM {webform_component} WHERE nid = %d", $node->nid);
  watchdog('webform', 'webform "' . $node->title . '" deleted', WATCHDOG_NOTICE);
}