You are here

function revisioning_unpublish_confirm in Revisioning 6.3

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

Return a confirmation page for unpublishing the node.

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

File

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

Code

function revisioning_unpublish_confirm($form_state, $node) {
  $form['node_id'] = array(
    '#type' => 'value',
    '#value' => $node->nid,
  );
  $form['title'] = array(
    '#type' => 'value',
    '#value' => $node->title,
  );
  $form['type'] = array(
    '#type' => 'value',
    '#value' => $node->type,
  );
  return confirm_form($form, t('Are you sure you want to unpublish %title?', array(
    '%title' => $node->title,
  )), "node/{$node->nid}/revisions", t('Unpublishing will remove this content from public view.'), t('Unpublish'), t('Cancel'));
}