Show different menu links to user depending upon their Drupal 6 role -


i want display different navigation links , data user depending upon role.

what module(s) use achieve this?

use hook_menu_alter()

/* * implementation of hook_menu_alter() */ function mymodule_menu_alter(&$items) {    $items['your/path']['access callback'] = _custom_access_callback_for_this_page(); } 

and inside access callback function (here: _custom_access_callback_for_this_page), write whatever validation want.

don't forget clear cache after changes inside `hook_menu_alter() implementation.

hope helps.


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -