You are here

function menu_position_menu_link_alter in Menu Position 7.2

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

Implements hook_menu_link_alter().

File

./menu_position.module, line 208
Provides menu links for dynamic positioning of nodes 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;
  }
}