You are here

function date_tools_wizard_form_submit in Date 8

Same name and namespace in other branches
  1. 6.2 date_tools/date_tools.wizard.inc \date_tools_wizard_form_submit()
  2. 7.3 date_tools/date_tools.wizard.inc \date_tools_wizard_form_submit()
  3. 7 date_tools/date_tools.wizard.inc \date_tools_wizard_form_submit()
  4. 7.2 date_tools/date_tools.wizard.inc \date_tools_wizard_form_submit()

@todo.

File

date_tools/date_tools.wizard.inc, line 154
The Date Wizard code.

Code

function date_tools_wizard_form_submit(&$form, &$form_state) {
  $view_name = date_tools_wizard_build($form_state['values']);
  menu_router_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/' . $form_state['values']['bundle'] . '/fields';
  }
}