You are here

function hosting_task_delete in Hosting 5

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

Implementation of hook_delete().

File

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

Code

function hosting_task_delete($node) {
  db_query('DELETE FROM {hosting_task} WHERE nid = %d', $node->nid);
  db_query('DELETE FROM {hosting_task_arguments} WHERE nid = %d', $node->nid);
  db_query('DELETE FROM {hosting_task_queue} WHERE nid = %d', $node->nid);
}