menu_firstchild.api.php in Menu Firstchild 2.x
Same filename and directory in other branches
Hooks related to the Menu Firstchild module.
File
menu_firstchild.api.phpView 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
Name | Description |
---|---|
hook_menu_firstchild_item_alter | Alter the menu item created by Firstchild. |