function revisioning_ux_unpublish in Revisioning 7
Same name and namespace in other branches
- 8 revisioning_ux/revisioning_ux.module \revisioning_ux_unpublish()
Form builder: Unpublish.
1 string reference to 'revisioning_ux_unpublish'
- revisioning_ux_page_alter in revisioning_ux/
revisioning_ux.module - Implements hook_page_alter().
File
- revisioning_ux/
revisioning_ux.module, line 189 - Revisioning User Experience Adjustments
Code
function revisioning_ux_unpublish($form, $form_state, $node) {
$form = array();
$form['node'] = array(
'#type' => 'value',
'#value' => $node,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Unpublish current revision'),
'#submit' => array(
'revisioning_ux_unpublish_submit',
),
);
return $form;
}