function _drush_hosting_task_create_platform_task in Hosting 7.4
Parameters
$site_task':
2 calls to _drush_hosting_task_create_platform_task()
- drush_hosting_task in ./
task.hosting.inc - Drush hosting task command.
- hosting_site_post_hosting_verify_task in site/
hosting_site.drush.inc - Implements hook_post_hosting_verify_task().
File
- ./
task.hosting.inc, line 567 - Drush include for the Hosting module's hosting task command.
Code
function _drush_hosting_task_create_platform_task($site_task) {
$platform_node = node_load($site_task->ref->platform);
$platform_task = clone $site_task;
$platform_task->nid = null;
$platform_task->vid = null;
$platform_task->title = "Verify: " . $platform_node->hosting_name;
$platform_task->task_type = 'verify';
$platform_task->ref = $platform_node;
$platform_task->rid = $platform_node->nid;
$platform_task->context_options = array();
// Save platform
$hook = 'hosting_platform_context_options';
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
call_user_func_array($function, array(
&$platform_task,
));
}
$platform_task->context_options['context_type'] = 'platform';
return $platform_task;
}