Remove Group Display in Moodle App

Remove Group Display in Moodle App

by Toni Roberts -
Number of replies: 3

Hello Everyone,

Does anyone know how to remove the group displayed to students in the Moodle app? It displays to all students the group that each student is in, which we do not want. I can't quite figure out if this is possible.

Any advice would be welcomed!

Thank you,

Toni

Average of ratings: -
In reply to Toni Roberts

Re: Remove Group Display in Moodle App

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers
Hi Toni,

in which page (or pages) do you want to hide it? Right now I can't remember where do we display group info from other students.

Cheers,
Dani
In reply to Dani Palou

Re: Remove Group Display in Moodle App

by Toni Roberts -
Hello Dani,

Specifically, we noted it in the forums but would like to remove it from all views and activities. A faculty member set up groups for user overrides for accommodations and inadvertently (due to the group titles) ended up making the accommodations visible to everyone. Even if the group names had not been descriptive, being in a group might signal accommodation in certain settings.

Thanks for your reply and any ideas!

Toni
In reply to Toni Roberts

Re: Remove Group Display in Moodle App

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers
Hi Tony,

I've checked if it was easy to hide this using CSS, but we don't have any class to identify those elements. I've opened an issue to improve this:

Once this is fixed you'll be able to hide the groups using a remote CSS, but please notice that the remote CSS feature is only available for Premium plans. You can find more info about plans in here.

Unfortunately, right now the only way to hide groups in forum is to modify the WebService so it doesn't return them. We don't recommend modifying Moodle LMS code, but right now it's the only way to achieve what you want. Basically you'd need to modify the Webservices:

mod_forum_get_discussion_posts
mod_forum_get_discussion_post

To not return the groups (inside "author"). You'd also need to modify the WebServices:

mod_forum_get_forum_discussions_paginated
mod_forum_get_forum_discussions

so they don't return a groupid.

Cheers,
Dani