Posts made by Joseph Rézeau

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

The list of activities that are available in H5P "complex" contents, such as Interactive Book, Course Presentation, etc. is limited by the choice made by the H5P deciders. You cannot change it (unless you know your way around H5P contents and you have good knowledge of programming and you know what you are doing, at your own risk).

Average of ratings: Useful (1)
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
Thanks Al
If I use 'float' (instead of 'text') then I don't have to use $mform->setType('xxx', PARAM_INT);
That's one line less, so a bit better...

EDIT.- In the whole of Moodle edit forms, there are only 2 instances of $mform->addElement('float'...):
in question\type\calculatedsimple\edit_calculatedsimple_form.php
and question\type\edit_question_form.php
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
Thanks for your help, Marcus. It looks like just what I needed.
It's a pity that there is not a "numerical" option for $mform->addElement() in Moodle!

Now I need to upgrade my plugin DB to add a field. I hope I will be able to do it with the help here. If not, I might ask for help again.😉