You are here

function user_revision_delete_confirm in User Revision 7.2

Same name and namespace in other branches
  1. 7 user_revision.pages.inc \user_revision_delete_confirm()

Delete a revision.

1 string reference to 'user_revision_delete_confirm'
user_revision_menu in ./user_revision.module
Implements hook_menu().

File

./user_revision.pages.inc, line 57
UI pages for revisions, copy-paste from node.pages.inc.

Code

function user_revision_delete_confirm($form, $form_state, $user_revision) {
  $form['#user_revision'] = $user_revision;
  return confirm_form($form, t('Are you sure you want to delete the revision from %revision-date?', array(
    '%revision-date' => format_date($user_revision->revision_timestamp),
  )), _user_revision_base_path($user_revision), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}