function publishcontent_render_unpublish_button in Publish Content 7
Render unpublish button.
1 call to publishcontent_render_unpublish_button()
- _publishcontent_configure_publish_button in ./
publishcontent.module - Add the publish button to the node edit form.
File
- ./
publishcontent.module, line 467 - Add link to publish or unpublish a node, with access control based on the node type
Code
function publishcontent_render_unpublish_button() {
return array(
'#type' => 'submit',
'#access' => TRUE,
'#value' => t('Unpublish'),
'#weight' => '30',
'#submit' => array(
'_publishcontent_unpublish_node',
),
);
}