How to add "publish content" to a node view tab I'm developping a website where I'm asked to add a tab "Publish content" next to the Edit tab. I was told to use the hook_menu, but so far i didn't succeed in showing the tab. 

Here is what I have done so far :

function mij_bo_add_menu(){
    global $items;
    $items['node/%node/edit'] = array(
        'title' =&gt; t('Publish'),
        'page callback' =&gt; 'node_page_view',
        'page arguments' =&gt; $items['#primary'][1]['#link']['page_arguments'],
        'access callback' =&gt; 'node_access',
        'access arguments' =&gt; array(1),
        'weight' =&gt; 5,
        'type' =&gt; MENU_LOCAL_TASK,
    );
 }


Any suggestions?

PS : I am still a novice in Drupal programming.
There's already a module called Publish Content that does what you exactly describe. You can browse the source code if you want to see how it's implemented there.