You are here

function revisioning_ux_unpublish_submit in Revisioning 8

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

Form submit function for unpublish button.

1 string reference to 'revisioning_ux_unpublish_submit'
revisioning_ux_unpublish in revisioning_ux/revisioning_ux.module
Form builder: Unpublish.

File

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

Code

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