You are here

hosting_package.drush.inc in Hosting 5

File

package/hosting_package.drush.inc
View source
<?php

function drush_hosting_package_pre_hosting_task() {
  $task =& drush_get_context('HOSTING_TASK');
  if ($task->ref->type == 'site') {
    $profile = node_load($task->ref->profile);
    if ($task->task_type != 'import') {
      $task->options['profile'] = $profile->short_name;
    }
  }
}