function revisioning_form_node_revision_revert_confirm_alter in Revisioning 7
Same name and namespace in other branches
- 8 revisioning.pages.inc \revisioning_form_node_revision_revert_confirm_alter()
- 6.4 revisioning.pages.inc \revisioning_form_node_revision_revert_confirm_alter()
- 6.3 revisioning.pages.inc \revisioning_form_node_revision_revert_confirm_alter()
Implements hook_form_FORM_ID_alter().
See also
node.pages.inc/node_revision_revert_confirm()
File
- ./
revisioning.pages.inc, line 231 - Rendering and altering of pages and forms used by Revisioning.
Code
function revisioning_form_node_revision_revert_confirm_alter(&$form, &$form_state) {
$node = $form['#node_revision'];
if (_revisioning_get_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 archived revision?'), 'warning');
}
array_unshift($form['#submit'], 'revisioning_revert_confirm_pre_submit');
$form['#submit'][] = 'revisioning_revert_confirm_post_submit';
}