daily_delete(&$node)
daily/daily_container.inc, line 189
Implementation of hook_delete(): Respond to node deletion for node type Daily Container.
Updates the database table {daily_container}
| Name | Description |
|---|---|
| Daily Container node type functions | All functions which define the node type Daily Container. |
| Hook implementations | Functions that implement standard Drupal hooks. |
<?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);
}
?>