You are here

function menu_block_delete_form in Menu Block 7.2

Same name and namespace in other branches
  1. 7.3 menu_block.admin.inc \menu_block_delete_form()

Menu callback: confirm deletion of menu blocks.

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

File

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

Code

function menu_block_delete_form($form, &$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/structure/block', NULL, t('Delete'), t('Cancel'));
}