hook_menu does not match 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' =&gt; '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'.
Your callback function is wrong:

function my_module_menu(){
  $items['beneficiaire/commande'] = array(
    'page callback' =&gt; 'commande_view',
  );
  return $items;
}

function commande_view(){
  var_dump('test_view');
  exit();
}