function hosting_alias_delete_revision in Hosting 7.4
Same name and namespace in other branches
- 5 alias/hosting_alias.module \hosting_alias_delete_revision()
- 6.2 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
Object $node: The site node.
2 calls to hosting_alias_delete_revision()
- hosting_alias_node_revision_delete in alias/
hosting_alias.module - Implements hook_node_revision_delete().
- hosting_alias_update in alias/
hosting_alias.module - Update stored aliases for an existing site.
File
- alias/
hosting_alias.module, line 344 - Allow sites to have domain aliases that they can be accessed with.
Code
function hosting_alias_delete_revision($node) {
db_delete('hosting_site_alias')
->condition('nid', $node->nid)
->condition('vid', $node->vid)
->execute();
}