You are here

hosting_client.drush.inc in Hosting 5

File

client/hosting_client.drush.inc
View source
<?php

function drush_hosting_client_pre_hosting_task() {
  $task =& drush_get_context('HOSTING_TASK');
  if ($task->ref->type == 'site' && $task->task_type == 'install') {
    $client = node_load($task->ref->client);
    $task->options['client_id'] = $task->ref->client;
    $task->options['client_email'] = $client->email;
  }
}