You are here

function revisioning_revert_confirm in Revisioning 6

Return a confirmation page prior to reverting to an older revision.

Forward to the existing revert function in node.pages.inc

1 string reference to 'revisioning_revert_confirm'
revisioning_menu_alter in ./revisioning.module
Implementation of hook_menu_alter().

File

./revisioning.module, line 341

Code

function revisioning_revert_confirm($form_state, $node) {
  if (_number_of_pending_revisions($node->nid) > 0) {
    drupal_set_message(t('There is a pending revision. Are you sure you want to revert to an older revision?'), 'warning');
  }
  return node_revision_revert_confirm($form_state, $node);
}