function hosting_server_data_hosting_server_context_options in Hosting 7.3
Same name and namespace in other branches
- 7.4 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';
}
}