Index

(menu)

o2menu_additem

boolean o2menu_additem(string $menu_name, string $item_type, string $item_name, string $item_label, string $item_data, boolean $visible, boolean $active, string $item_ico, integer $position)

Add an item to an existing menu. If item is a menu ($item_type == "m") menu container is created too.
New item is inserted at $position in parent menu (starting from 1). If $position is zero, or not passed, then new item is appended at last position to parent menu.


Parameters:
  1. $menu_name
  2. $item_type
  3. $item_name
  4. $item_label
  5. $item_data
  6. $visible
  7. $active
  8. $item_ico
  9. $position