Same name in other branches
- 7.x-3.x quicktabs.admin.inc \quicktabs_form_submit()
Submit handler for quicktabs admin page.
Fichier
-
includes/
admin.inc, line 560
Code
function quicktabs_form_submit($form, &$form_state) {
// We don't want it to submit when we're just adding or removing tabs.
$quicktab = _quicktabs_convert_form_to_quicktab($form_state);
$exists = quicktabs_load($quicktab->machine_name);
if ($exists && empty($exists->in_code_only)) {
$ret = drupal_write_record('quicktabs', $quicktab, 'machine_name');
if ($ret == SAVED_UPDATED) {
drupal_set_message(t('The quicktab block has been updated.'));
}
}
else {
$ret = drupal_write_record('quicktabs', $quicktab);
if ($ret == SAVED_NEW) {
drupal_set_message(t('The quicktab block has been created.'));
}
}
drupal_goto('admin/structure/quicktabs');
}