function revisioning_delete_archived_confirm_submit in Revisioning 7
Same name and namespace in other branches
- 8 revisioning.pages.inc \revisioning_delete_archived_confirm_submit()
- 6.3 revisioning.pages.inc \revisioning_delete_archived_confirm_submit()
Submission handler for the delete_archived_confirm form.
File
- ./
revisioning.pages.inc, line 218 - 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;
}