You are here

function qt_more_tabs_submit in Quick Tabs 6

Same name and namespace in other branches
  1. 6.3 includes/admin.inc \qt_more_tabs_submit()
  2. 6.2 includes/admin.inc \qt_more_tabs_submit()
  3. 7.2 includes/admin.inc \qt_more_tabs_submit()

submit handler for the "Add Tab" button

1 string reference to 'qt_more_tabs_submit'
quicktabs_form in ./quicktabs.module
build the Quick Tabs creation and edit form

File

./quicktabs.module, line 374

Code

function qt_more_tabs_submit($form, &$form_state) {
  unset($form_state['submit_handlers']);
  form_execute_handlers('submit', $form, $form_state);
  $quicktabs = $form_state['values'];
  $form_state['quicktabs'] = $quicktabs;
  $form_state['rebuild'] = TRUE;
  if ($form_state['values']['tabs_more']) {
    $form_state['qt_count'] = count($form_state['values']['tabs']) + 1;
  }
  return $quicktabs;
}