The same item IDs and the same methods of the HSPC::CP::Menu package are used for Control Panel menu and dashboard.
In spite of the fact that the same IDs and methods are used for menu and dashboard, the addition or other operation over the menu items does not affect dashboard. Thus, please remember that for example, to add an item both to menu and dashboard, it is necessary to all a custom code in both modules.
To add items to an existing section of the menu or dashboard or to add a new section and items to the menu or dashboard, use the add_item_to_section method.
Input parameters are:
Required parameters:
site, system, account, person, upgrade, help)Optional parameters:
Return value:
Note: This method will create a new section if section with ID equal to passed "section_id" does not exist. The full list of item IDs used in the Control Panel is attached.
If you are sure that section does not exist, always specify the "section_title" parameter in order to give a title for a newly created section. If the title was not passed, the method uses "NoName" as a section title.