function hosting_site_data_drush_context_import in Hosting 7.4
Same name and namespace in other branches
- 6.2 example/site_data/hosting_site_data.drush.inc \hosting_site_data_drush_context_import()
- 7.3 example/site_data/hosting_site_data.drush.inc \hosting_site_data_drush_context_import()
Implements hook_drush_context_import().
File
- example/
site_data/ hosting_site_data.drush.inc, line 23 - The Drush integration for site data example.
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;
}
}
}