You are here

function revisioning_ux_publish_submit in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning_ux/revisioning_ux.module \revisioning_ux_publish_submit()

Form submit function for publish button.

1 string reference to 'revisioning_ux_publish_submit'
revisioning_ux_publish in revisioning_ux/revisioning_ux.module
Form builder: Publish.

File

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

Code

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