You are here

function headerimage_block_confirm_delete in Header image 7

Same name and namespace in other branches
  1. 5 headerimage.module \headerimage_block_confirm_delete()
  2. 6 headerimage.admin.inc \headerimage_block_confirm_delete()

Delete block form

1 string reference to 'headerimage_block_confirm_delete'
headerimage_menu in ./headerimage.module
Implementation of hook_menu()

File

./headerimage.admin.inc, line 143
headerimage.admin.inc

Code

function headerimage_block_confirm_delete($form, &$form_state, $delta) {
  $blocks = headerimage_get_blocks();
  $form['delta'] = array(
    '#type' => 'value',
    '#value' => $delta,
  );
  return confirm_form($form, t('Are you sure you want to delete the block %title?', array(
    '%title' => $blocks[$delta],
  )), 'admin/structure/headerimage', t('All Header Image assignments to this block will be deleted, the nodes will not be deleted. This action cannot be undone.'), t('Delete'), t('Cancel'));
}