You are here

function hosting_alias_update in Hostmaster (Aegir) 6

Update stored aliases for an existing site.

Parameters

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

1 call to hosting_alias_update()
hosting_alias_nodeapi in modules/hosting/alias/hosting_alias.module
Implementation of hook_nodeapi().

File

modules/hosting/alias/hosting_alias.module, line 170
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);
}