menu-append

long ( menu-append long menu-id long item-id string item-string optional long submenu-id)

Append a string or submenu to the menu, passing the integer ID by which the menu item will be referenced, a string to be displayed, and optionally an id for a pullright menu.