You are here

function _menu_block_delete in Menu Block 5.2

Menu callback: confirm deletion of menu blocks.

1 call to _menu_block_delete()
menu_block_delete in ./menu_block.module
Menu callback: confirm deletion of menu blocks.

File

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

Code

function _menu_block_delete($delta = 0) {
  $title = _menu_block_format_title($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'));
}