Same name in other branches
  1. 7.x-2.x includes/admin.inc \quicktabs_block_delete_submit()
  2. 8.x-1.x quicktabs.admin.inc \quicktabs_block_delete_submit()

Submit handler for quicktab block deletion.

File

./quicktabs.admin.inc, line 518

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';
}