Expand description
Top menu / main menu controller.
Functions
- Adds an option to the top menu. This function is called for each one of the options in the top menu.
- Adds an option to the “Other” submenu on the top menu. This function is called for each one of the options in the submenu.
- Prepares the top menu and sub menu, adding the different options that compose them. Contains multiple calls to
add_main_menu_option
andadd_sub_menu_option
. Some of them are conditionally executed depending on which options should be unlocked.