我知道如何将一个参数传递给菜单回调
$items['someaddress/%'] = array(
'title' => 'title',
'page callback' => 'some_function',
'page arguments' => 1,
'type' => MENU_CALLBACK
);
我不明白为什么要传递的论点是$_POST['nid']
,但这有效。它对应于页面参数 1。
function some_function (){
$node = isset($_POST['nid']) ? node_load($_POST['nid']) : FALSE;
}
我现在正在尝试传递多个参数。 $items['someaddress/%/%/%'] = array(
并正在寻找我如何做到这一点的代码示例。
谢谢!