You are here

function revisioning_ux_publish in Revisioning 8

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

Form builder: Publish.

1 string reference to 'revisioning_ux_publish'
revisioning_ux_page_alter in revisioning_ux/revisioning_ux.module
Implements hook_page_alter().

File

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

Code

function revisioning_ux_publish($form, $form_state, $node) {
  $form = array();
  $form['node'] = array(
    '#type' => 'value',
    '#value' => $node,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Publish'),
    '#submit' => array(
      'revisioning_ux_publish_submit',
    ),
  );
  return $form;
}