function hosting_alias_delete in Hosting 7.4
Same name and namespace in other branches
- 5 alias/hosting_alias.module \hosting_alias_delete()
- 6.2 alias/hosting_alias.module \hosting_alias_delete()
- 7.3 alias/hosting_alias.module \hosting_alias_delete()
Remove the stored aliases for and existing site.
Parameters
Object $node: The site node.
1 call to hosting_alias_delete()
- hosting_alias_node_delete in alias/
hosting_alias.module - Implements hook_node_delete().
File
- alias/
hosting_alias.module, line 332 - Allow sites to have domain aliases that they can be accessed with.
Code
function hosting_alias_delete($node) {
db_delete('hosting_site_alias')
->condition('nid', $node->nid)
->execute();
}