how to add "access callback" function to a path defined by a view? I'm using Drupal 7, Views 3, and hook_menu_alter

function MYMODULE_menu_alter(&amp;$items){
  $items['client/place/%'] = array(
    'access callback' =&gt; 'custom_function',
  );   
}


to override the view visibility (access), also flushing caches, but this doesn't seems to work, can somebody give some light about how to solve this, is this the right way to override path defined by a view ?

thanks in advance
Reminder: Views module allows you to set the access from Views UI

If you want to create your own logic; this is how your code should look like:

function MYMODULE_menu_alter(&amp;$items){
  $items['client/place/%']['access callback'] = 'MYMODULE_custom_callback'; 
}

function MYMODULE_custom_callback(){ 
  $isValid = false;

  /* your logic */

  return $isValid;
}


Make sure your module is called after the Views module. Usually Views module wight is 10; so your module wight should be 11 or more. 

Also, don't forget to clear your cache.