I'm a very newbie to drupal and very interested in creating drupals module. As a learning process i embarked on project to create an entry module for my site. I'm having problems with menus and permissions.
i want anonymous users to have a menu so that when they click on it, they get an interface for adding and viewing entries. then a menu for logged in users where by when they click on it they get the view interface as the anonymous user but has the ability to comment on the entry. Based on the online tutorials that i followed, i managed to come up with something. when i installed the module and enabled it and granted the neccessary permission to right users, the menu never showed up, can anybody please help me out. This is the code for generation of the menu.
/**
* Implementing hook help
*/
function kentry_help( $section ) {
switch( $section ){
case "admin/modules#description":
$output = t( 'entry module' );
break;
}
return $output;
}
/**
* Implementing hook perm
*/
function kentry_perm() {
return array( 'view entry',
'suggest entry',
'review entry'
);
}
/**
* Implementing hook menu
*/
function kentry_menu( $may_cache ) {
$items = array();
$view = user_access('view entry');
//$anonymous = user_access( 'suggest entry' );