block_box_delete

Versions
4.6 – 5
block_box_delete($bid = 0)
6
block_box_delete(&$form_state, $bid = 0)

Menu callback; confirm deletion of custom blocks.

Code

modules/block/block.module, line 524

<?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'));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.