I have a module where I try to catch an url to use a specific function.
function my_module_menu(){
$items['beneficiaire/commande'] = array(
'page callback' => 'test_view',
);
return $items;
}
function test_view(){
var_dump('test_view');
exit();
}
Unfortunately, when I call beneficiaire/commande nothing append. I know Drupal go through this hook because when I do
function my_module_menu(){
die('poc');
}
I see 'poc'.