Page callback: Form constructor for the reversion confirmation form.
This form prevents against CSRF attacks.
int $node_revision: The node revision ID.
array An array as expected by drupal_render().
node_revision_revert_confirm_submit()
function node_revision_revert_confirm($form, $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'));
}