function node_makemeeting_delete in Make Meeting Scheduler 6
Same name and namespace in other branches
- 7 makemeeting.module \node_makemeeting_delete()
Implements node_delete().
File
- ./
makemeeting.module, line 511 - Make Meeting module
Code
function node_makemeeting_delete($node) {
$res = db_query("SELECT answer_id FROM {makemeeting_poll_rows} WHERE nid = %d", $node->nid);
while ($answer_id_row = db_fetch_array($res)) {
db_query("DELETE FROM {makemeeting_poll_alters} WHERE answer_id = %d", $answer_id_row['answer_id']);
}
db_query("DELETE FROM {makemeeting_poll_rows} WHERE nid = %d", $node->nid);
db_query("DELETE FROM {makemeeting_poll_heads} WHERE nid = %d", $node->nid);
db_query("DELETE FROM {makemeeting_poll_votes} WHERE poll_id = %d", $node->nid);
}