You are here

function hosting_alias_delete in Hostmaster (Aegir) 6

Remove the stored aliases for and existing site.

Parameters

$node: The site node.

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

File

modules/hosting/alias/hosting_alias.module, line 185
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);
}