You are here

function hosting_alias_update in Hosting 7.4

Same name and namespace in other branches
  1. 5 alias/hosting_alias.module \hosting_alias_update()
  2. 6.2 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

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

2 calls to hosting_alias_update()
hosting_alias_node_update in alias/hosting_alias.module
Implements hook_node_update().
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 317
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);
}