Skip to content

Instantly share code, notes, and snippets.

View bhgraham's full-sized avatar

Benjamin H. Graham bhgraham

View GitHub Profile
@cash
cash / elgglib.php
Created September 5, 2010 23:57
Elgg Menu API for 1.8
/**
* 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