function revisioning_publish_confirm_submit in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.pages.inc \revisioning_publish_confirm_submit()
- 6 revisioning.module \revisioning_publish_confirm_submit()
- 6.3 revisioning.pages.inc \revisioning_publish_confirm_submit()
- 7 revisioning.pages.inc \revisioning_publish_confirm_submit()
Submission handler for the publish_confirm form.
File
- ./
revisioning.pages.inc, line 154 - Rendering and altering of pages and forms used by Revisioning.
Code
function revisioning_publish_confirm_submit($form, &$form_state) {
$nid = $form_state['values']['node_id'];
$vid = $form_state['values']['revision'];
$node = node_load($nid, $vid);
_revisioning_publish_revision($node);
revisioning_set_status_message(t('Revision has been published.'));
// Redirect to the same page as unpublish and revert.
$form_state['redirect'] = "node/{$nid}/revisions";
}