You are here

function hosting_site_data_drush_context_import in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 example/site_data/hosting_site_data.drush.inc \hosting_site_data_drush_context_import()
  2. 7.3 example/site_data/hosting_site_data.drush.inc \hosting_site_data_drush_context_import()

Implementation of hook_drush_context_import().

File

example/site_data/hosting_site_data.drush.inc, line 18

Code

function hosting_site_data_drush_context_import($context, &$node) {
  if ($context->type == 'site') {
    if (isset($context->site_data) && !empty($context->site_data)) {
      $node->site_data = $context->site_data;
    }
  }
}