Hi all,

I've got a module which returns a node_view() on special paths (by menu callback).
I.E. /front will do the following

return node_view(node_load($node->nid),FALSE,TRUE);

When the page is rendered, the Clone-Tab is missing (its a regular node). When viewing the
node directly by the "regular" node path (/node/58), the clone-tab is visible.

Comments

pwolanin’s picture

Status: Active » Closed (works as designed)

yes, of course.

If you want this tab visible elsewhere, you can arrange it via your hook_menu implementation.

mr.cake’s picture

Thanks for your reply. My menu_hook implementationI looks like this:

    $items[] = array('path' => 'front',
    'callback' => 'display_channel',
    'callback arguments' => array('channel', '2', 'home'),
    'access' => true,
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'node/'. $node->nid.'/clone', 
    'title' => t('Clone'),
    'callback' => 'clone_node',
    'callback arguments' => $node->nid,
    'access' => true,
    'type' => MENU_LOCAL_TASK, 'weight' => 0);

But that doesnt seem to work. Andy ideas?