function _publish_button_unpublish_node in Publish button 7
Submit handler to unpublish the node.
1 string reference to '_publish_button_unpublish_node'
- publish_button_render_unpublish_button in ./
publish_button.module - Render unpublish button.
File
- ./
publish_button.module, line 163 - Functions to create a publish button. Real simple, but could be needed.
Code
function _publish_button_unpublish_node($form, &$form_state) {
// Set the status as unpublished. And there is no more to that.
$form_state['values']['status'] = 0;
// Use the standard submit function.
node_form_submit($form, $form_state);
}