function hostmaster_profile_tasks in Hostmaster (Aegir) 5.x
Same name and namespace in other branches
- 6.2 hostmaster.profile \hostmaster_profile_tasks()
- 6 hostmaster.profile \hostmaster_profile_tasks()
File
- ./
hostmaster.profile, line 82
Code
function hostmaster_profile_tasks(&$task, $url) {
include_once dirname(__FILE__) . '/hostmaster.forms.inc';
define("HOSTMASTER_FORM_REDIRECT", $url);
if ($task == 'profile') {
hostmaster_bootstrap();
}
include_once drupal_get_path('module', 'node') . '/node.pages.inc';
$task = hostmaster_get_task($task, variable_get('hostmaster_wizard_offset', 0));
variable_del('hostmaster_wizard_offset');
define("HOSTMASTER_CURRENT_TASK", $task);
install_include(hostmaster_profile_modules());
$func = sprintf("hostmaster_task_%s", $task);
if (function_exists($func)) {
return drupal_get_form($func);
}
return $task;
return "123";
if ($tid == sizeof($keys) - 1) {
# $task = 'profile-finished';
}
}