You are here

function hosting_nodeapi_task_delete_revision in Hosting 7.4

Same name and namespace in other branches
  1. 5 task/hosting_task.module \hosting_nodeapi_task_delete_revision()
  2. 6.2 task/hosting_task.module \hosting_nodeapi_task_delete_revision()
  3. 7.3 task/hosting_task.module \hosting_nodeapi_task_delete_revision()

Implements hook_delete_revision().

File

task/hosting_task.module, line 1039
Web server node type is defined here.

Code

function hosting_nodeapi_task_delete_revision(&$node) {
  db_delete('hosting_task')
    ->condition('vid', $node->vid)
    ->execute();
  db_delete('hosting_task_arguments')
    ->condition('vid', $node->vid)
    ->execute();
  db_delete('hosting_task_log')
    ->condition('vid', $node->vid)
    ->execute();
}