You are here

function hosting_context_delete in Hosting 6.2

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

Delete an alias from the context lookup table.

Parameters

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

5 calls to hosting_context_delete()
hosting_platform_delete in platform/hosting_platform.module
Implementation of hook_delete().
hosting_platform_post_hosting_delete_task in platform/hosting_platform.drush.inc
Implementation of hook_hosting_post_DELETE().
hosting_server_delete in server/hosting_server.module
Implementation of hook_delete().
hosting_site_delete in site/hosting_site.nodeapi.inc
Implementation of hook_delete().
hosting_site_post_hosting_delete_task in site/hosting_site.drush.inc
implementation of hook_hosting_post_DELETE

File

./hosting.module, line 898
Hosting module.

Code

function hosting_context_delete($nid) {
  db_query("DELETE FROM {url_alias} WHERE src='node/%d'", $nid);
  db_query("DELETE FROM {hosting_context} WHERE nid=%d", $nid);
}