You are here

function multiblock_delete_form in MultiBlock 5

Same name and namespace in other branches
  1. 6 multiblock.module \multiblock_delete_form()
  2. 7 multiblock.module \multiblock_delete_form()
1 string reference to 'multiblock_delete_form'
multiblock_menu in ./multiblock.module
Implementation of hook_menu().

File

./multiblock.module, line 159

Code

function multiblock_delete_form($delta) {
  $block = multiblock_get_block($delta);
  if (empty($block)) {
    drupal_set_message(t('The multiblock with the delta @delta was not found.', array(
      '@delta' => $delta,
    )), 'error');
    return array();
  }
  $form['delta'] = array(
    '#type' => 'value',
    '#value' => $delta,
  );
  return confirm_form($form, t('Delete the block instance %title?', array(
    '%title' => $block->title,
  )), 'admin/build/block/instances', t('This will delete the instance of the block %title.', array(
    '%title' => $block->title,
  )), t('Delete'), t('Cancel'));
}