function hosting_alias_drush_context_import

7.x-3.x hosting_alias.drush.inc hosting_alias_drush_context_import($context, &$node)

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