function hosting_site_delete in Hosting 7.3
Same name and namespace in other branches
- 5 site/hosting_site.module \hosting_site_delete()
- 6.2 site/hosting_site.nodeapi.inc \hosting_site_delete()
- 7.4 site/hosting_site.nodeapi.inc \hosting_site_delete()
Implements hook_delete().
File
- site/
hosting_site.nodeapi.inc, line 220 - Site nodeapi implementations.
Code
function hosting_site_delete($node) {
db_delete('hosting_site')
->condition('nid', $node->nid)
->execute();
db_delete('hosting_package_instance')
->condition('rid', $node->nid)
->execute();
hosting_context_delete($node->nid);
hosting_task_delete_related_tasks($node->nid);
}