You are here

function quicktabs_block_delete_submit in Quick Tabs 7.3

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 quicktabs.module \quicktabs_block_delete_submit()
  4. 6.2 includes/admin.inc \quicktabs_block_delete_submit()
  5. 7.2 includes/admin.inc \quicktabs_block_delete_submit()

Submit handler for quicktab block deletion.

File

./quicktabs.admin.inc, line 518
Provides the Quicktabs administrative interface.

Code

function quicktabs_block_delete_submit($form, &$form_state) {
  quicktabs_delete($form_state['values']['machine_name']);
  drupal_set_message(t('The Quicktabs instance %name has been removed.', array(
    '%name' => $form_state['values']['title'],
  )));
  cache_clear_all();
  $form_state['redirect'] = 'admin/structure/quicktabs';
}