You are here

menu_firstchild.api.php in Menu Firstchild 2.x

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

Hooks related to the Menu Firstchild module.

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|null $child
 *   Child menu item, themain item was created from.
 */
function hook_menu_firstchild_item_alter(array &$menu_item, $child) {
  $menu_item['attributes']
    ->addClass('custom-class');
}

Functions

Namesort descending Description
hook_menu_firstchild_item_alter Alter the menu item created by Firstchild.