function user_revision_revert_confirm in User Revision 7
Same name and namespace in other branches
- 7.2 user_revision.pages.inc \user_revision_revert_confirm()
Revert a revision.
1 string reference to 'user_revision_revert_confirm'
- user_revision_menu in ./
user_revision.module - Implements hook_menu().
File
- ./
user_revision.pages.inc, line 95 - UI pages for revisions, copy-paste from node.pages.inc.
Code
function user_revision_revert_confirm($form, $form_state, $user_revision) {
$form['#user_revision'] = $user_revision;
return confirm_form($form, t('Are you sure you want to revert to the revision from %revision-date?', array(
'%revision-date' => format_date($user_revision->revision_timestamp),
)), 'user/' . $user_revision->uid . '/revisions', '', t('Revert'), t('Cancel'));
}