You are here

function hosting_server_data_hosting_server_context_options 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_hosting_server_context_options()

Implements hook_hosting_server_context_options().

File

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

Code

function hosting_server_data_hosting_server_context_options(&$task) {
  if (isset($task->ref->server_data) && !empty($task->ref->server_data)) {
    $task->context_options['server_data'] = $task->ref->server_data;
  }
  else {
    $task->context_options['server_data'] = 'null';
  }
}