You are here

function block_revisions_revert_confirm in Block Revisions 7

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

Confirmation form for reverting a revision.

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

File

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

Code

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