function hosting_alias_update

7.x-3.x hosting_alias.module hosting_alias_update($node)

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 281
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);
}