General developer forum

Resetting a contributed block's contents to default values

 
Picture of Joseph Rézeau
Resetting a contributed block's contents to default values
Core developersParticularly helpful MoodlersPlugin developersTestersTranslators

Hi all!

I am currently upgrading my block_glossary_export_to_quiz

Once a selected glossary's entries have been exported to a quiz/questions compatible format, and the user returns to the course main page, I would like all of the block's specialization values to be reset to their default values, instead of keeping their previously entered values.

How could I do that?

Thanks in advance.

Joseph

 
Average of ratings: -