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

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -