You are here

function block_revisions_revert_confirm in Block Revisions 6

Same name and namespace in other branches
  1. 7 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
Implementation of 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_state, $revision) {
  $form['#block_revision'] = $revision;
  $delta = $revision->bid;
  return confirm_form($form, t('Are you sure you want to revert the revision?'), "admin/build/block/configure/block/{$delta}/revisions", t('This action cannot be undone.'), t('Revert'), t('Cancel'));
}