You are here

function menu_firstchild_preprocess_menu in Menu Firstchild 8

Same name and namespace in other branches
  1. 2.x menu_firstchild.module \menu_firstchild_preprocess_menu()

Implements hook_preprocess_menu().

Parses all menu items.

File

./menu_firstchild.module, line 106
Contains menu_firstchild.module.

Code

function menu_firstchild_preprocess_menu(&$variables) {
  $parser = new MenuItemParser();
  foreach ($variables['items'] as &$item) {
    $item = $parser
      ->parse($item, $variables['menu_name']);
  }
}