function revisioning_delete_archived_confirm_submit in Revisioning 6.3
Same name and namespace in other branches
- 8 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 172 - 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);
drupal_set_message(format_plural($node->num_archived, 'One archived revision deleted.', '@count archived revisions deleted.'));
$form_state['redirect'] = $node->num_revisions - $node->num_archived > 1 ? 'node/' . $node->nid . '/revisions' : 'node/' . $node->nid;
}