#Activity Module# Access form data within the renderer

#Activity Module# Access form data within the renderer

by Benjamin-Bodo Salewski -
Number of replies: 1

Hey,


I'm extending an existing activity module and I'd like to access the form data from the form defined in mod_form.php within the renderer. How do I do this?


tia, Benny

Average of ratings: -
In reply to Benjamin-Bodo Salewski

Re: #Activity Module# Access form data within the renderer

by Michael Hughes -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

I don't think you can do it this way in the renderer.

What do you mean by "extending" and existing activity module? Are you cloning it or trying to shoe-horn addition bits in.

Depending on the module you may have some luck if there are existing hooks.

For example you can (with a bit of jiggery pokery) use submission and feedback plugins to modify the assignment activities edit form, but only the bits *above* the submission and feedback plugins section.