You are here

function hosting_alias_update in Hosting 5

Same name and namespace in other branches
  1. 6.2 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()
1 call to hosting_alias_update()
hosting_alias_nodeapi in alias/hosting_alias.module
Implementation of hook_nodeapi

File

alias/hosting_alias.module, line 98

Code

function hosting_alias_update($node) {

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