You are here

function hosting_client_delete in Hosting 7.3

Same name and namespace in other branches
  1. 5 client/hosting_client.module \hosting_client_delete()
  2. 6.2 client/hosting_client.module \hosting_client_delete()
  3. 7.4 client/hosting_client.module \hosting_client_delete()

Implements hook_delete().

File

client/hosting_client.module, line 591

Code

function hosting_client_delete($node) {
  db_delete('hosting_client')
    ->condition('nid', $node->nid)
    ->execute();
  db_delete('hosting_client_user')
    ->condition('client', $node->nid)
    ->execute();
}