You are here

function drush_hosting_package_pre_hosting_task in Hosting 5

Same name and namespace in other branches
  1. 6.2 package/hosting_package.drush.inc \drush_hosting_package_pre_hosting_task()
  2. 7.3 package/hosting_package.drush.inc \drush_hosting_package_pre_hosting_task()

File

package/hosting_package.drush.inc, line 3

Code

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;
    }
  }
}