You are here

function menu_block_delete_form_submit in Menu Block 7.3

Same name and namespace in other branches
  1. 7.2 menu_block.admin.inc \menu_block_delete_form_submit()

Deletion of menu blocks.

File

./menu_block.admin.inc, line 120
Provides infrequently used functions and hooks for menu_block.

Code

function menu_block_delete_form_submit($form, &$form_state) {

  // Remove the menu block configuration variables.
  $delta = $form_state['values']['delta'];
  menu_block_delete($delta);
  drupal_set_message(t('The block "%name" has been removed.', array(
    '%name' => $form_state['values']['block_title'],
  )));
  cache_clear_all();
  $form_state['redirect'] = 'admin/structure/block';
  return;
}