How to pass a parameter (for example: SKU12345) to the Drupal module. Here is what I still have ...
URL: / my_module / sku / SKU12345
$items['my_module/sku/%mySKU'] = array(
'title' => 'Information for SKU %',
'page callback' => 'my_module_with_parm',
'page arguments' => array(3),
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
'file' => 'my_module.pages.inc',
);
function my_module_with_parm($my_parm) {
$output = $my_parm;
return $output;
}
ernie source
share