function revisioning_delete_archived_confirm_submit in Revisioning 8
Same name and namespace in other branches
- 6.3 revisioning.pages.inc \revisioning_delete_archived_confirm_submit()
- 7 revisioning.pages.inc \revisioning_delete_archived_confirm_submit()
Submission handler for the delete_archived_confirm form.
File
- ./
revisioning.pages.inc, line 209 - Rendering and altering of pages and forms used by Revisioning.
Code
function revisioning_delete_archived_confirm_submit($form, &$form_state) {
$node = $form_state['values']['node'];
revisioning_delete_archived_revisions($node);
$t = format_plural($node->num_archived, 'One archived revision deleted.', '@count archived revisions deleted.');
revisioning_set_status_message($t);
$form_state['redirect'] = $node->num_revisions - $node->num_archived > 1 ? 'node/' . $node->nid . '/revisions' : 'node/' . $node->nid;
}