You are here

function hosting_task_delete in Hosting 7.4

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

Implements hook_delete().

File

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

Code

function hosting_task_delete($node) {
  db_delete('hosting_task')
    ->condition('nid', $node->nid)
    ->execute();
  db_delete('hosting_task_arguments')
    ->condition('nid', $node->nid)
    ->execute();
  db_delete('hosting_task_log')
    ->condition('nid', $node->nid)
    ->execute();
}