This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add an item to an Elgg menu | |
* | |
* @param string $menu The name of the menu: site, page, userhover, userprofile, groupprofile, or any custom menu | |
* @param string $id The unique identifier for this menu item. An example is blog:add | |
* @param string $title The localized title string for this menu item | |
* @param string $url The URL for this menu item | |
* @param array $options An associative array of menu options including: tooltip, parent, context, or custom option. | |
* tooltip: string that is used as the title element of the link | |
* parent: the $id of the item's parent |