You are here

function headerimage_block_confirm_delete in Header image 6

Same name and namespace in other branches
  1. 5 headerimage.module \headerimage_block_confirm_delete()
  2. 7 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 118
headerimage.admin.inc

Code

function headerimage_block_confirm_delete(&$form_state, $delta) {
  $blocks = headerimage_get_blocks();
  $form['delta'] = array(
    '#type' => 'value',
    '#value' => $delta,
  );
  $form['#redirect'] = 'admin/settings/headerimage';
  return confirm_form($form, t('Are you sure you want to delete the block %title?', array(
    '%title' => $blocks[$delta],
  )), 'admin/settings/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'));
}