You are here

menu_firstchild.api.php in Menu Firstchild 8

Same filename and directory in other branches
  1. 2.x menu_firstchild.api.php

File

menu_firstchild.api.php
View source
<?php\

/**
 * @file
 * Hooks related to the Menu Firstchild module.
 */

/**
 * Alter the menu item created by Firstchild.
 *
 * @param array $menu_item
 *   Item to be altered.
 * @param array $child
 *   Child menu item, themain item was created from.
 */
function hook_menu_firstchild_item_alter(&$menu_item, $child) {
  $menu_item['attributes']->addClass('custom-class');
}