is it possible to handle all wildcards in _menu() by module.
I know about specific wildcards like
display/page/%
but that won’t work for paths display/page/3/andOrderBy/Name
what If I want to handle unpredicted ammount of parameters like
display/page/3/12/45_2/candy/yellow/bmw/turbo
I want to have one display/* _menu() path to handle all ARGUMENTS.
how can I do it ?
Drupal will pass any additional URL elements as additional parameters to your
hook_menucallback function – use func_get_args() in your callback to get them.So if you register only one wildcard
display/page/%, but the actual request has two additional elementsdisplay/page/3/andOrderBy/Name, your callback will be passed ‘3’ as an explicit parameter, but also ‘andOrderBy’ and ‘Name’ as implicit additional ones.Example callback: