Suppose your custom module name is xyz.
function xyz_perm() { return array(‘Access My menu’); } function xyz_menu() { $items=array(); $items['mymenu] = array( 'title' => t(‘My Menu’), 'page callback' => ‘xyz_mymenu’, 'access arguments' => array('Access My menu'), 'type' => MENU_CALLBACK, ); return $items; } function xyz_mymenu (){ …… WRITE YOUR CODE HERE …… }
No comments:
Post a Comment