function qt_remove_tab_submit in Quick Tabs 6
Same name and namespace in other branches
- 6.3 includes/admin.inc \qt_remove_tab_submit()
- 6.2 includes/admin.inc \qt_remove_tab_submit()
- 7.2 includes/admin.inc \qt_remove_tab_submit()
submit handler for the "Remove Tab" button
1 string reference to 'qt_remove_tab_submit'
- quicktabs_form in ./
quicktabs.module - build the Quick Tabs creation and edit form
File
- ./
quicktabs.module, line 389
Code
function qt_remove_tab_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;
unset($form['qt_wrapper']['tabs'][0]);
$form_state['values']['tabs'] = array_values($form_state['values']['tabs']);
$form_state['qt_count'] = count($form_state['values']['tabs']) - 1;
return $quicktabs;
}