Modedit Form

Modedit Form

by S Keathly -
Number of replies: 1

I'm trying to figure out what this modedit form block code refers to. It appears to control the visibility of Moodle elements and other parameters.

<input name="mform_isexpanded_id_optionssection" type="hidden" value="1">

Not certain where these elements set (In the Moodle UI, PHP statement in a theme, other)?? Perhaps there is documentation about how this works?

Thanks.

Attachment modedit.png
Average of ratings: -
In reply to S Keathly

Re: Modedit Form

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

They are related to the UI to expand collapse sections of the form.

They are created by code in lib/formslib.php, and automatically added to all forms. There is also some associated javascript.

Average of ratings: Useful (1)