You are here

function hosting_alias_delete in Hosting 6.2

Same name and namespace in other branches
  1. 5 alias/hosting_alias.module \hosting_alias_delete()
  2. 7.4 alias/hosting_alias.module \hosting_alias_delete()
  3. 7.3 alias/hosting_alias.module \hosting_alias_delete()

Remove the stored aliases for and existing site.

Parameters

$node: The site node.

1 call to hosting_alias_delete()
hosting_alias_nodeapi in alias/hosting_alias.module
Implementation of hook_nodeapi().

File

alias/hosting_alias.module, line 324
Allow sites to have domain aliases that they can be accessed with.

Code

function hosting_alias_delete($node) {
  db_query("DELETE FROM {hosting_site_alias} WHERE nid=%d", $node->nid);
}