function revisioning_unpublish_confirm in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.pages.inc \revisioning_unpublish_confirm()
- 6 revisioning.module \revisioning_unpublish_confirm()
- 6.3 revisioning.pages.inc \revisioning_unpublish_confirm()
- 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 - Implements hook_menu().
File
- ./
revisioning.pages.inc, line 167 - Rendering and altering of pages and forms used by Revisioning.
Code
function revisioning_unpublish_confirm($form, &$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'));
}