You are here

function qt_more_tabs_submit in Quick Tabs 6.3

Same name and namespace in other branches
  1. 6 quicktabs.module \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'
_qt_admin_main_form in includes/admin.inc

File

includes/admin.inc, line 425

Code

function qt_more_tabs_submit($form, &$form_state) {
  $quicktabs = _quicktabs_convert_form_to_quicktabs($form_state);

  // Add an empty tab at the end.
  $quicktabs['tabs'][] = array();
  unset($form_state['submit_handlers']);
  form_execute_handlers('submit', $form, $form_state);
  $form_state['quicktabs'] = $quicktabs;
  $form_state['rebuild'] = TRUE;
}