You are here

function hosting_site_data_hosting_site_context_options in Hosting 7.4

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

Implements hook_hosting_site_context_options().

File

example/site_data/hosting_site_data.drush.inc, line 11
The Drush integration for site data example.

Code

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