block_box_delete
Definition
block_box_delete($bid = 0)
modules/block/block.module, line 524
Description
Menu callback; confirm deletion of custom blocks.
Code
<?php
function block_box_delete($bid = 0) {
$box = block_box_get($bid);
$form['info'] = array('#type' => 'hidden', '#value' => $box['info']);
$form['bid'] = array('#type' => 'hidden', '#value' => $bid);
return confirm_form($form, t('Are you sure you want to delete the block %name?', array('%name' => $box['info'])), 'admin/build/block', '', t('Delete'), t('Cancel'));
}
?> 