insertmenu

insertmenu "text",<function code>(,<submenu level number>)/h3>

This command inserts the menu item that you have customized through resetmenu. The menu should always be inserted ahead of everything else. The last numerical item tells the interpreter how many submenus deep this menu item should be inserted.