You are here

function revisioning_publish_confirm in Revisioning 6

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.3 revisioning.pages.inc \revisioning_publish_confirm()
  4. 7 revisioning.pages.inc \revisioning_publish_confirm()

Return a confirmation page for publishing a revision.

1 string reference to 'revisioning_publish_confirm'
revisioning_menu in ./revisioning.module
Implementation of hook_menu().

File

./revisioning.module, line 236

Code

function revisioning_publish_confirm($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'));
}