function quicktabs_block_delete_submit in Quick Tabs 7.2
Same name and namespace in other branches
- 5 quicktabs.module \quicktabs_block_delete_submit()
- 6.3 includes/admin.inc \quicktabs_block_delete_submit()
- 6 quicktabs.module \quicktabs_block_delete_submit()
- 6.2 includes/admin.inc \quicktabs_block_delete_submit()
- 7.3 quicktabs.admin.inc \quicktabs_block_delete_submit()
Submit handler for quicktab block deletion.
File
- includes/
admin.inc, line 593 - Provides the Quick Tabs' administrative interface.
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';
}