5
You can add/delete a module's submenu links in the main menu by editing the xoops_version.php file located in the module's folder.
Save a backup copy before editing the following files!
1) Look in the module's xoops_version.php file to find the modules main menu settings:
// Menu
$modversion['hasMain'] = 1;
Add your submenu links to the module's xoops_version.php file like this:
// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _CLA_SUBMENU1;
$modversion['sub'][1]['url'] = "yourlinkfilename1.php";
$modversion['sub'][2]['name'] = _CLA_SUBMENU2;
$modversion['sub'][2]['url'] = "yourlinkfilename2.php";
2)Look in the module's language directory for main.php and add you sublink's name to the module's language variables:
define ("_CLA_SUBMENU1","Your Sublink1 Name Here")
define ("_CLA_SUBMENU2","Your Sublink2 Name Here")
or
You can hard code the submenu name in xoops_version.php by replacing the variable _CLA_SUBMENU1 with your link name in quotes. Like this:
$modversion['sub'][1]['name'] = "YourLinkName";
3) Publish the edited files and update the module in XOOPS Control Panel/Module Administration.
When you select the module in the main menu the new submenu items should now appear.
More xoops_version info here.Hope this helps!