You are here

function hosting_server_data_drush_context_import in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 example/server_data/hosting_server_data.drush.inc \hosting_server_data_drush_context_import()

Implements hook_drush_context_import().

File

example/server_data/hosting_server_data.drush.inc, line 23
The Drush integration for server data example.

Code

function hosting_server_data_drush_context_import($context, &$node) {
  if ($context->type == 'server') {
    if (isset($context->server_data) && !empty($context->server_data)) {
      $node->server_data = $context->server_data;
    }
  }
}