Using some complex restriction patterns I found that the restriction list shown to students can become pretty long and confusing. Therefore, I'ld be happy to get the possibility to toggle in the "Restriction access" part of an activity if the restriction list should be put in a <details> block or not.
I explained my usecase in more detail in the moodle community forums: Moodle in English: Restriction information on mouseover
I provided a first step to the solution there. I ádjusted the code so that a <details> block is used if a activity has more than one restriction (and thus the info will be a list). But this approach will also collapse a list of only two elements.
Since this was my first day coding something in the moodle environment I did not manage to find where (and how) to create a checkbox to toggle this behaviour manually.
I hope some of you will find this functionality usefull as well and may work on this subject.
Best regards, Simon