Remove menu item from user menu with Adaptable as theme

Remove menu item from user menu with Adaptable as theme

by Aysenur Kazokoglu -
Number of replies: 2
Hello,

We are using Adaptable (2019112603) as theme in our moodle (3.9.2+ (Build: 20201002)). I have unsinstalled the calendar plugin, but the menu item pluginname is still available in the user menu. Any idea how to remove this line?

Thanks in advance.

Average of ratings: -
In reply to Aysenur Kazokoglu

Re: Remove menu item from user menu with Adaptable as theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Remove this:

        $usermenuitems[] = array('enablecalendar', false, $CFG->wwwroot.'/calendar/view.php',
            get_string('pluginname', 'block_calendar_month'), \theme_adaptable\toolbox::getfontawesomemarkup('calendar'));

from 'user_profile_menu()' in 'renderers.php'.

Average of ratings: Useful (1)