function revisioning_ux_delete_archived_submit in Revisioning 8
Same name and namespace in other branches
- 7 revisioning_ux/revisioning_ux.module \revisioning_ux_delete_archived_submit()
Form submit function for delete archived button.
1 string reference to 'revisioning_ux_delete_archived_submit'
- revisioning_ux_delete_archived in revisioning_ux/
revisioning_ux.module - Form builder: Delete archived.
File
- revisioning_ux/
revisioning_ux.module, line 233 - Revisioning User Experience Adjustments
Code
function revisioning_ux_delete_archived_submit(&$form, &$form_state) {
if (isset($form_state['values']['node'])) {
$node = $form_state['values']['node'];
$form_state['redirect'] = "node/{$node->nid}/revisions/delete-archived";
}
}