You are here

function revisioning_publish_confirm in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning.pages.inc \revisioning_publish_confirm()
  2. 6.4 revisioning.pages.inc \revisioning_publish_confirm()
  3. 6 revisioning.module \revisioning_publish_confirm()
  4. 6.3 revisioning.pages.inc \revisioning_publish_confirm()

Return a confirmation page for publishing a revision.

2 string references to 'revisioning_publish_confirm'
revisioning_menu in ./revisioning.module
Implements hook_menu().
revisioning_scheduler_form_alter in revisioning_scheduler/revisioning_scheduler.module
Implements hook_form_alter().

File

./revisioning.pages.inc, line 148
Rendering and altering of pages and forms used by Revisioning.

Code

function revisioning_publish_confirm($form, &$form_state, $node) {
  $form['node_id'] = array(
    '#type' => 'value',
    '#value' => $node->nid,
  );
  $form['title'] = array(
    '#type' => 'value',
    '#value' => $node->title,
  );
  $form['revision'] = array(
    '#type' => 'value',
    '#value' => $node->vid,
  );
  $form['type'] = array(
    '#type' => 'value',
    '#value' => $node->type,
  );
  return confirm_form($form, t('Are you sure you want to publish this revision of %title?', array(
    '%title' => $node->title,
  )), 'node/' . $node->nid . '/revisions', t('Publishing this revision will make it visible to the public.'), t('Publish'), t('Cancel'));
}