function _publishcontent_unpublish_node in Publish Content 7
Submit handler to unpublish the node.
1 string reference to '_publishcontent_unpublish_node'
- publishcontent_render_unpublish_button in ./
publishcontent.module - Render unpublish button.
File
- ./
publishcontent.module, line 490 - Add link to publish or unpublish a node, with access control based on the node type
Code
function _publishcontent_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);
}