menu_firstchild.api.php in Menu Firstchild 8
Same filename and directory in other branches
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 $child
* Child menu item, themain item was created from.
*/
function hook_menu_firstchild_item_alter(&$menu_item, $child) {
$menu_item['attributes']->addClass('custom-class');
}