I have this code in the module cleanetica_advanced
.
function cleanetica_advanced_menu() { $items['ajax/content/%'] = array( 'page callback' => 'cleanetica_advanced_ajax_load', 'page arguments' => array(2), 'title' => 'Ajax content load', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK ); $items['ajax/validate/form/%'] = array( 'page callback' => 'cleanetica_advanced_ajax_validate_form', 'page arguments' => array(3), 'title' => 'Ajax validate form', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK ); $items['user'] = array( 'title' => 'blogs', 'description' => 'Listing of blogs.', #'page callback' => 'blog_page', 'access arguments' => array('access content'), 'type' => MENU_DEFAULT_LOCAL_TASK ); return $items; }
For some reason the item "blogs" (which I created for testing only, there are no blogs in our site) does not show in the tabs of the page /users
. I need to show it in the /users
tabs. What is my error?
I checked that cleanetica_advanced
module is loaded by inserting some nonsense in the .module file and seeing that the site ceases to work with an error message. (Then I removed the nonsense.)
By the way, does user
in $items['user']
refer to the page where the menu should be shown or to the ID of the menu item itself?