function hosting_task_delete_related_tasks in Hosting 7.4
Same name and namespace in other branches
- 7.3 task/hosting_task.module \hosting_task_delete_related_tasks()
Delete tasks related to a given site, platform, server, etc.
3 calls to hosting_task_delete_related_tasks()
- hosting_platform_delete in platform/
hosting_platform.module - Implements hook_delete().
- hosting_server_delete in server/
hosting_server.module - Implements hook_delete().
- hosting_site_delete in site/
hosting_site.nodeapi.inc - Implements hook_delete().
File
- task/
hosting_task.module, line 1069 - Web server node type is defined here.
Code
function hosting_task_delete_related_tasks($nid) {
$result = db_query("SELECT distinct nid FROM {hosting_task} WHERE rid = :rid", array(
':rid' => $nid,
));
foreach ($result as $node) {
node_delete($node->nid);
}
}