You are here

function quicktabs_block_delete_submit in Quick Tabs 6

Same name and namespace in other branches
  1. 5 quicktabs.module \quicktabs_block_delete_submit()
  2. 6.3 includes/admin.inc \quicktabs_block_delete_submit()
  3. 6.2 includes/admin.inc \quicktabs_block_delete_submit()
  4. 7.3 quicktabs.admin.inc \quicktabs_block_delete_submit()
  5. 7.2 includes/admin.inc \quicktabs_block_delete_submit()

Deletion of Quick Tabs blocks.

File

./quicktabs.module, line 655

Code

function quicktabs_block_delete_submit($form, $form_state) {
  db_query('DELETE FROM {quicktabs} WHERE qtid = %d', $form_state['values']['qtid']);
  drupal_set_message(t('The Quick Tabs block %name has been removed.', array(
    '%name' => $form_state['values']['qt_name'],
  )));
  cache_clear_all();
  drupal_goto('admin/build/quicktabs');
}