I will wish to create a privileged space for some users.
I create a role 'Candidate'. I assigned permission 'access user profiles' has this role. I create a user that uses this role. (eg, foo)
Secondly, I create a menu (see below)
$items['candidate/%candidate'] = array(
'title' => t('My candidate space'),
'description' => '',
'page callback' => 'cel_configuration_custom_page',
'page arguments' => array(1),
'access arguments' => array('access user profiles'),
'access callback' => TRUE,
);
Then a linked function
function cel_configuration_custom_page($args){
return 'custom';
}
Finally, I have emptied the cache.
When I go on the candidate/1 page with my account 'toto' or account 'admin', I have not found page.
Why?