You are here

hosting_package.drush.inc in Hosting 6.2

Drush include for the package management module.

File

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

/**
 * @file
 *   Drush include for the package management module.
 */
function drush_hosting_package_pre_hosting_task() {
  $task =& drush_get_context('HOSTING_TASK');
  if ($task->ref->type == 'site') {

    // populate the profile option, if it hasn't been specified yet.
    if (empty($task->options['profile'])) {
      $profile = node_load($task->ref->profile);
      if ($task->task_type != 'import') {
        $task->options['profile'] = $profile->short_name;
      }
    }
  }
}

Functions

Namesort descending Description
drush_hosting_package_pre_hosting_task @file Drush include for the package management module.