function publish_button_render_publish_button in Publish button 7
Render publish button.
1 call to publish_button_render_publish_button()
- publish_button_form_node_form_alter in ./
publish_button.module - Implements hook_form_BASE_FORM_ID_alter().
File
- ./
publish_button.module, line 120 - Functions to create a publish button. Real simple, but could be needed.
Code
function publish_button_render_publish_button() {
$publish_button = array(
'#type' => 'submit',
'#access' => TRUE,
'#value' => t('Publish'),
'#weight' => '30',
// Add the submit handler.
'#submit' => array(
'_publish_button_publish_node',
),
);
return $publish_button;
}