You are here

function menu_block_delete in Menu Block 6.2

Same name and namespace in other branches
  1. 5.2 menu_block.module \menu_block_delete()
  2. 7.3 menu_block.module \menu_block_delete()
  3. 7.2 menu_block.module \menu_block_delete()

Menu callback: confirm deletion of menu blocks.

1 string reference to 'menu_block_delete'
menu_block_menu in ./menu_block.module
Implements hook_menu().

File

./menu_block.admin.inc, line 60
Provides infrequently used functions for menu_block.

Code

function menu_block_delete(&$form_state, $delta = 0) {
  $title = _menu_block_format_title(menu_block_get_config($delta));
  $form['block_title'] = array(
    '#type' => 'hidden',
    '#value' => $title,
  );
  $form['delta'] = array(
    '#type' => 'hidden',
    '#value' => $delta,
  );
  return confirm_form($form, t('Are you sure you want to delete the "%name" block?', array(
    '%name' => $title,
  )), 'admin/build/block', NULL, t('Delete'), t('Cancel'));
}