You are here

function hosting_alias_delete_revision in Hostmaster (Aegir) 6

Remove the stored aliases for and existing site for a specific version.

Parameters

$node: The site node.

2 calls to hosting_alias_delete_revision()
hosting_alias_nodeapi in modules/hosting/alias/hosting_alias.module
Implementation of hook_nodeapi().
hosting_alias_update in modules/hosting/alias/hosting_alias.module
Update stored aliases for an existing site.

File

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

Code

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