function drush_hosting_package_pre_hosting_task in Hosting 6.2
Same name and namespace in other branches
- 5 package/hosting_package.drush.inc \drush_hosting_package_pre_hosting_task()
- 7.3 package/hosting_package.drush.inc \drush_hosting_package_pre_hosting_task()
@file Drush include for the package management module.
File
- package/
hosting_package.drush.inc, line 7 - Drush include for the package management module.
Code
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;
}
}
}
}