function drush_hosting_platform_pre_hosting_task in Hosting 5
File
- platform/
hosting_platform.drush.inc, line 3
Code
function drush_hosting_platform_pre_hosting_task($task) {
$task =& drush_get_context('HOSTING_TASK');
if ($task->ref->type == 'site') {
$node = node_load($task->ref->platform);
}
elseif ($task->ref->type == 'platform') {
$node = $task->ref;
}
$task->options['platform'] = $node->nid;
$task->options['publish_path'] = $node->publish_path;
if ($task->task_type == 'verify') {
$task->options['master_url'] = variable_get('install_url', $GLOBALS['base_url']);
}
}