hosting_package.drush.inc

Drush include for the package management module.

Functions

File

package/hosting_package.drush.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Drush include for the package management module.
  5. */
  6. function drush_hosting_package_pre_hosting_task() {
  7. $task = &drush_get_context('HOSTING_TASK');
  8. if ($task->ref->type == 'site') {
  9. // populate the profile option, if it hasn't been specified yet.
  10. if (empty($task->options['profile'])) {
  11. $profile = node_load($task->ref->profile);
  12. if ($task->task_type != 'import' && $task->task_type != 'delete' && $task->task_type != 'verify') {
  13. $task->options['profile'] = $profile->short_name;
  14. }
  15. }
  16. }
  17. }