Hi. I want my reports and plugins to be able to correctly register new menu items in arbitary spots.
I realise that for "site administration" I can follow this regular pattern:
$ADMIN->add('reports', new admin_externalpage('reportlog', get_string('log', 'admin'), "$CFG->wwwroot/report/log/index.php?id=".SITEID, 'report/log:view'));
However, I would like to add links to other locations, such as a direct child of My profile, or My Profile > Activity reports, or as a child of My home.
I have been nosing around in the code to see where these items are coded, but as mentioned I want my plugin to perform this, not modify core code (if at all possible).