tabs - Drupal - MENU_LOCAL_TASK - keep ID -


since days i'm fighting problem: have links this: /mymodule/detail/[id_product] in block. following this, want display different aspects of specific product in tabs - alway keeping id_product given primary link.

what have this:

function mymodule_menu() { $items['mymodule/detail'] = array( 'type' => menu_callback, 'page callback' => 'mymodule_page', 'page arguments' => array ('aspect1', 1), 'access callback' => true, ); $items['mymodule/detail/aspect1'] = array( 'title' => 'tab 1: aspect1', 'type' => menu_default_local_task, 'page arguments' => array (1), 'access callback' => true,  ); $items['mymodule/detail/aspect2'] = array( 'title' => 'tab 2: aspect2', 'page callback' => 'mymodule_page', 'page arguments' => array (1), 'type' => menu_local_task, 'access callback' => true, ); return $items; } 

is there way distribute product-id tabs?

i new @ drupal if i'm right, way manage id comming first call. how transfer id through tab-links? tab-menu-link should contain/deliver id - that's problem.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -