You are here

function menu_position_menu_link_alter in Menu Position 7

Same name and namespace in other branches
  1. 6 menu_position.module \menu_position_menu_link_alter()
  2. 7.2 menu_position.module \menu_position_menu_link_alter()

Implements hook_menu_link_alter().

File

./menu_position.module, line 235
Provides dynamic menu links based on configurable rules.

Code

function menu_position_menu_link_alter(&$item) {
  if (isset($item['module']) && $item['module'] == 'menu_position') {

    // Don't allow the link to be "enabled".
    $item['hidden'] = 1;
  }
}