You are here

function hosting_alias_drush_context_import in Hostmaster (Aegir) 6

Implementation of hook_drush_context_import().

If we're importing a site, then import the aliases and redirection values.

File

modules/hosting/alias/hosting_alias.drush.inc, line 25
Drush include for the hosting_alias module.

Code

function hosting_alias_drush_context_import($context, &$node) {
  if ($context->type == 'site') {
    $node->aliases = $context->aliases;
    $node->redirection = $context->redirection;
  }
}