Hide Enrollment Options that do not apply to user

Hide Enrollment Options that do not apply to user

by Emma Richardson -
Number of replies: 2
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Has anyone found a way to hid the enrollment options that a user is not eligible for?
For example, currently, I have a self enrollment option that is limited to a cohort.  If a user is not in the cohort, there is a message that says they have to be in the cohort - I would prefer for the enrollment option to simply not show on the enrollment page as it clutters it up, especially if you have two or three different enrollment options...
Average of ratings: Useful (1)
In reply to Emma Richardson

Re: Hide Enrollment Options that do not apply to user

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Did you try to change the cohortnonmemberinfo string in the enrol_self plugin to '' or '<p hidden>Only members of cohort \'{$a}\' can self-enrol.</p>'?

In reply to Renaat Debleu

Re: Hide Enrollment Options that do not apply to user

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hmmm...but that would still show the title of the Self Enrollment plugin right?  But still an improvement...