function hosting_alias_delete_revision in Hosting 6.2
Same name and namespace in other branches
- 5 alias/hosting_alias.module \hosting_alias_delete_revision()
- 7.4 alias/hosting_alias.module \hosting_alias_delete_revision()
- 7.3 alias/hosting_alias.module \hosting_alias_delete_revision()
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 alias/
hosting_alias.module - Implementation of hook_nodeapi().
- hosting_alias_update in alias/
hosting_alias.module - Update stored aliases for an existing site.
File
- alias/
hosting_alias.module, line 334 - 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);
}