General developer forum

Is there a way for a plugin to remove a node (or category) from profile page navigation tree?

 
Picture of Olumuyiwa Taiwo
Is there a way for a plugin to remove a node (or category) from profile page navigation tree?
Particularly helpful Moodlers

I would like my plugin to remove a node from the profile page navigation tree -- possibly by using

<plugintype>_<pluginname_myprofile_navigation()

There is a function to add a node:

core_user\output\myprofile\tree->add_node()

But there is no function to remove a node.

I can override a theme's renderer to hide the node, but I would prefer to remove it entirely from the tree so it is not visible irrespective of the theme is in use.

Any ideas?


 
Average of ratings: -