function revisioning_unpublish_confirm in Revisioning 6
Same name and namespace in other branches
- 8 revisioning.pages.inc \revisioning_unpublish_confirm()
- 6.4 revisioning.pages.inc \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 - Implementation of hook_menu().
File
- ./
revisioning.module, line 263
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'));
}