function _publishcontent_publish_node in Publish Content 7
Submit handler to publish the node.
1 string reference to '_publishcontent_publish_node'
- publishcontent_render_publish_button in ./
publishcontent.module - Render publish button.
File
- ./
publishcontent.module, line 480 - Add link to publish or unpublish a node, with access control based on the node type
Code
function _publishcontent_publish_node($form, &$form_state) {
// Set the node status as published. And that's it.
$form_state['values']['status'] = 1;
// Use the standard submit function. Do not go custom on me boy.
node_form_submit($form, $form_state);
}