You are here

function hosting_server_delete in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 server/hosting_server.module \hosting_server_delete()
  2. 7.3 server/hosting_server.module \hosting_server_delete()

Implements hook_delete().

File

server/hosting_server.module, line 610

Code

function hosting_server_delete($node) {
  db_delete('hosting_server')
    ->condition('nid', $node->nid)
    ->execute();
  _hosting_ip_delete($node);
  hosting_context_delete($node->nid);
  hosting_task_delete_related_tasks($node->nid);
  hosting_server_invoke_services($node, 'delete_revision');
}