You are here

function hosting_hosting_site_context_options in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 site/hosting_site.drush.inc \hosting_hosting_site_context_options()
  2. 7.3 site/hosting_site.drush.inc \hosting_hosting_site_context_options()

File

site/hosting_site.drush.inc, line 3

Code

function hosting_hosting_site_context_options(&$task) {
  $task->context_options['db_server'] = hosting_context_name($task->ref->db_server);
  $task->context_options['platform'] = hosting_context_name($task->ref->platform);
  $task->context_options['uri'] = strtolower(trim($task->ref->title));
  $task->context_options['language'] = $task->ref->site_language;
  $profile = node_load($task->ref->profile);
  $task->context_options['profile'] = $profile->short_name;
  $client = node_load($task->ref->client);
  $user = user_load($task->uid);
  $task->options['client_email'] = $user->mail;
  $task->context_options['client_name'] = $client->uname;
}