function node_revision_revert_confirm

7.x node.pages.inc node_revision_revert_confirm($form, $form_state, $node_revision)
6.x node.pages.inc node_revision_revert_confirm($form_state, $node_revision)

Ask for confirmation of the reversion to prevent against CSRF attacks.

1 string reference to 'node_revision_revert_confirm'
node_menu in drupal-6.x/modules/node/node.module
Implementation of hook_menu().

File

drupal-6.x/modules/node/node.pages.inc, line 574
Page callbacks for adding, editing, deleting, and revisions management for content.

Code

function node_revision_revert_confirm($form_state, $node_revision) {
  $form['#node_revision'] = $node_revision;
  return confirm_form($form, t('Are you sure you want to revert to the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/' . $node_revision->nid . '/revisions', '', t('Revert'), t('Cancel'));
}