You are here

function block_revisions_delete_confirm in Block Revisions 7

Same name and namespace in other branches
  1. 6 block_revisions.admin.inc \block_revisions_delete_confirm()

Confirmation form for revision deletion.

1 string reference to 'block_revisions_delete_confirm'
block_revisions_menu in ./block_revisions.module
Implements hook_menu().

File

./block_revisions.admin.inc, line 50
Admin functions and page callbacks for the Block Revisions module.

Code

function block_revisions_delete_confirm($form, $form_state, $revision) {
  $form['#block_revision'] = $revision;
  $delta = $revision->bid;
  return confirm_form($form, t('Are you sure you want to delete the revision?'), "admin/structure/block/manage/block/{$delta}/revisions", t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}