Same name in other branches
- 7.x-3.x quicktabs.admin.inc \quicktabs_block_delete_submit()
- 8.x-1.x quicktabs.admin.inc \quicktabs_block_delete_submit()
Submit handler for quicktab block deletion.
File
-
includes/
admin.inc, line 593
Code
function quicktabs_block_delete_submit($form, &$form_state) {
db_query('DELETE FROM {quicktabs} WHERE machine_name = :machine_name', array(
':machine_name' => $form_state['values']['machine_name'],
));
drupal_set_message(t('The quicktab block %name has been removed.', array(
'%name' => $form_state['values']['title'],
)));
cache_clear_all();
$form_state['redirect'] = 'admin/structure/quicktabs';
}