Hi,
I am brand new to Drupal and have been having a heck of time wading through the docs trying to find examples and tutorials.
As difficult as it has been, I have managed to create my custom module and it works - as long as I am logged in. I want my module to display it's stuff on the front page (or any page I want) to any user - logged in or not (anonymous user).
I can see my_custom_module listed on the Modules page and I can enable it. I see the "help" link, but no "permissions" link. How do I activate that permissions link, so I can tell Drupal to let anonymous user to be able to "load" this module (i.e. access http://www.example.com/my_custom_module). Currently I get "Access Denied" if I am not logged in.
I have a my_custom_module_perm() function that looks like this (D7 ?):
return array(
'administer my_custom_module' => array(
'title' => t('Administer my_custom_module'),
'description' => t('Perform administration tasks for my_custom_module.'),
),
'access my_custom_module' => array(
'title' => t('Access my_custom_module'),
'description' => t('Access to my_custom_module.'),
),
);
(Is D6 supposed to look like this: return array('access my_custom_module', 'administer my_custom_module');
?)
Also, D7 hook seems to be _permission() instead of _perm() in D6. Is that correct?