Add an item to the menu array.
public add ( string $url, string $text, string $icon = '', string $icon_path = null, string $target = '', string $onclick = null, string $class = null ) | ||
$url | string | String containing the value for the hyperlink. |
$text | string | String containing the label for this menu item. |
$icon | string | String containing the filename of the image icon to display for this menu item. |
$icon_path | string | If the icon lives in a non-default directory, where is it? |
$target | string | If the link needs to open in another frame or window, what is its name? |
$onclick | string | Onclick javascript, if desired. |
$class | string | CSS class for the menu item. |