function revisioning_unpublish_confirm_submit in Revisioning 6.4
Same name and namespace in other branches
- 8 revisioning.pages.inc \revisioning_unpublish_confirm_submit()
- 6 revisioning.module \revisioning_unpublish_confirm_submit()
- 6.3 revisioning.pages.inc \revisioning_unpublish_confirm_submit()
- 7 revisioning.pages.inc \revisioning_unpublish_confirm_submit()
Submission handler for the unpublish_confirm form.
File
- ./
revisioning.pages.inc, line 130 - Rendering and altering of pages and forms used by Revisioning
Code
function revisioning_unpublish_confirm_submit($form, &$form_state) {
$nid = $form_state['values']['node_id'];
_revisioning_unpublish_revision($nid);
//$type = $form_state['values']['type']; // machine name, eg. 'story' rather than 'Story'
$title = $form_state['values']['title'];
drupal_set_message(t('%title is no longer publicly visible.', array(
'%title' => $title,
)));
// Redirect to the same page as publish and revert
$form_state['redirect'] = "node/{$nid}/revisions";
}