You are here

function hosting_alias_update in Hosting 6.2

Same name and namespace in other branches
  1. 5 alias/hosting_alias.module \hosting_alias_update()
  2. 7.4 alias/hosting_alias.module \hosting_alias_update()
  3. 7.3 alias/hosting_alias.module \hosting_alias_update()

Update stored aliases for an existing site.

Parameters

$node: The node of the site containing the aliases to save.

2 calls to hosting_alias_update()
hosting_alias_nodeapi in alias/hosting_alias.module
Implementation of hook_nodeapi().
hosting_alias_update_6204 in alias/hosting_alias.install
Fixup redirection data after table change in hosting_alias_update_6203()

File

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

Code

function hosting_alias_update($node) {

  // We need to wipe clean existing aliases if we are not making a new revision
  if (empty($node->revision)) {
    hosting_alias_delete_revision($node);
  }
  hosting_alias_insert($node);
}