function hosting_wizard_form_submit in Hosting 5
Additional submit handler that gets added to the end of all wizard forms.
This redirects the user to the next step in the wizard
File
- ./
hosting.wizard.inc, line 569
Code
function hosting_wizard_form_submit($form_id, $values) {
$values = (array) $values;
variable_set('hosting_wizard_completed_' . $values['step'], mktime());
$next = hosting_wizard_next_step();
if ($next) {
return "hosting/wizard/" . $next;
}
else {
return variable_get('site_frontpage', 'node');
}
}