Hello
I am new to the module development. I want to create a profile module.
I am not faimiliar with the various access in drupal.
When I created a path like below it works:
'type' => MENU_SUGGESTED_ITEM);
$items[] = array('path' => 'profiles', 'title' => t('user list'),
'callback' => 'profile_display',
'access' => TRUE,
'type' => MENU_SUGGESTED_ITEM);
where as when we give the path like that below, it wont works. It is showing the page not found error.
$items[] = array('path' => 'profile/A', 'title' => t('list users'),
'callback' => 'profile_display',
'access' => user_access('administer users'),
'type' => MENU_CALLBACK);
I also tried this :
$items[] = array('path' => 'profile/A', 'title' => t('list field'),
'callback' => 'profile_list',
'access' => TRUE,
'type' => MENU_SUGGESTED_ITEM);
It also does not work. It would be great if you could help me in solving this problem.
With regards,
Baburaj