You are here

function revisioning_ux_delete_all_submit in Revisioning 8

Same name and namespace in other branches
  1. 7 revisioning_ux/revisioning_ux.module \revisioning_ux_delete_all_submit()

Form submit function for delete all button.

1 string reference to 'revisioning_ux_delete_all_submit'
revisioning_ux_delete_all in revisioning_ux/revisioning_ux.module
Form builder: Delete all.

File

revisioning_ux/revisioning_ux.module, line 261
Revisioning User Experience Adjustments

Code

function revisioning_ux_delete_all_submit(&$form, &$form_state) {
  if (isset($form_state['values']['node'])) {
    $node = $form_state['values']['node'];
    $form_state['redirect'] = "node/{$node->nid}/delete";
  }
}