You are here

function menu_firstchild_menu_link_alter in Menu Firstchild 7

Same name and namespace in other branches
  1. 6 menu_firstchild.module \menu_firstchild_menu_link_alter()

Implementation of hook_menu_link_alter().

File

./menu_firstchild.module, line 33
menu_firstchild.module Main file for the menu_firstchild module.

Code

function menu_firstchild_menu_link_alter(&$item) {
  if ($item['module'] == 'menu') {
    if ($item['link_path'] == '<firstchild>') {
      $item['options']['alter'] = TRUE;
      $item['options']['unaltered_hidden'] = $item['hidden'];
    }
  }
}