You are here

function hosting_context_delete in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 hosting.module \hosting_context_delete()
  2. 7.3 hosting.module \hosting_context_delete()

Delete an alias from the context lookup table.

Parameters

int $nid: The nid of the node to remove the association from.

6 calls to hosting_context_delete()
hosting_platform_delete in platform/hosting_platform.module
Implements hook_delete().
hosting_platform_post_hosting_delete_task in platform/hosting_platform.drush.inc
Implements hook_post_hosting_TASK_TYPE_task().
hosting_server_delete in server/hosting_server.module
Implements hook_delete().
hosting_server_post_hosting_delete_task in server/hosting_server.drush.inc
Implements hook_post_hosting_TASK_TYPE_task().
hosting_site_delete in site/hosting_site.nodeapi.inc
Implements hook_delete().

... See full list

File

./hosting.module, line 1254
Hosting module.

Code

function hosting_context_delete($nid) {
  path_delete(array(
    'source' => 'node/' . $nid,
  ));
  db_delete('hosting_context')
    ->condition('nid', $nid)
    ->execute();
}