I am currently developing a block to export entries & definitions from a course glossary and import into the quiz question bank. I've got it to work but would like to add the feature or selecting glossary categories (if any).
On the page where the teacher can select which glossary to export data from plus various other parameters (number of entries, randomize, etc.) I would like to have 2 "dependent dropdown lists", Glossaries and Categories. When teacher selects a glossary in the Glossaries list, I would like the Categories list to dynamically be populated with the names of that glossary's categories (if any).
I have not found that kind of parameters settings page in moodle. If there are existing examples in moodle, please direct me to them. To have an idea of what I would like to achieve, see Chained Selects.
As an alternative, I could always display on my block's settings page the complete list of available glossaries (within the course context) and for each, the list of its categories, and provide all those items with radio buttons, but that would not be so sleek.
Any help welcome,
Joseph
PS.- This is for 1.9; maybe there is a better mechanism already existing in the 2.0 API?