You are here

function hosting_alias_drush_context_import in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 alias/hosting_alias.drush.inc \hosting_alias_drush_context_import()
  2. 7.4 alias/hosting_alias.drush.inc \hosting_alias_drush_context_import()

Implements hook_drush_context_import().

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

File

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