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