function publishcontent_toggle_status_form_submit in Publish Content 7
Submit handler for Publish/Unpublish confirmation form
File
- ./
publishcontent.module, line 309 - Add link to publish or unpublish a node, with access control based on the node type
Code
function publishcontent_toggle_status_form_submit($form, &$form_state) {
// load node using node id
$node = node_load($form_state['values']['id']);
publishcontent_toggle_status($node);
}