function date_tools_wizard_form_submit in Date 7.3
Same name and namespace in other branches
- 8 date_tools/date_tools.wizard.inc \date_tools_wizard_form_submit()
- 6.2 date_tools/date_tools.wizard.inc \date_tools_wizard_form_submit()
- 7 date_tools/date_tools.wizard.inc \date_tools_wizard_form_submit()
- 7.2 date_tools/date_tools.wizard.inc \date_tools_wizard_form_submit()
Form submit.
File
- date_tools/
date_tools.wizard.inc, line 179 - The Date Wizard code.
Code
function date_tools_wizard_form_submit(&$form, &$form_state) {
$view_name = date_tools_wizard_build($form_state['values']);
menu_rebuild();
if (!empty($form_state['values']['calendar']) && !empty($view_name)) {
$form_state['redirect'] = 'admin/structure/views/template/' . $view_name . '/add';
}
else {
$form_state['redirect'] = 'admin/structure/types/manage/' . str_replace('_', '-', $form_state['values']['bundle']) . '/fields';
}
}