Hello,
I'm trying to add new page/tab to the user page on moodle app. (see screenshot)
I was trying to add the page via "site administration" panel but i didn't found any option, that can allow me to add here a new tab.
So I created new local plugin and I was trying to add a hook but it didn't added a page anywhere. (also I don't see the page on the web app)
function local_forum_extend_navigation_user(navigation_node $parentnode, stdClass $user, context_user $context, stdClass $course, context_course $coursecontext){Would someone explain me how could I add a new tab there?
$parentnode->add(
get_string('navigation', 'local_forum'),
new moodle_url('/local/forum/index.php'),
navigation_node::TYPE_CUSTOM,
null,
null,
new pix_icon('t/message', '')
);
}