Test a custom library in Moodle

Forums: 

Hi everyone,

Is there a way to test a modified library in the Moodle plugin?
I know the libraries are hashed in moodledata, but maybe there's a way to modify the database by adding custom content.

Sorry if the question has been asked before, I have only found this thread, but it does not answer my question directly.


Thank you very much,
Greetings

otacke's picture

Hi David!

I don't think there's a good way to do this in moodle's filesystem, but ou can set

$CFG->mod_hvp_dev = true;

in the moodle config file.

This will allow you to upload versions of a library that have the same version number as the one that's installed on the system. Needless to say that this is not a good idea to do on productive systems :-) Drupal is better suited for H5P development BTW.

Oh, and if you're not familiar with H5P libraries: They're basically just zip archives with some rules for what's expected and allowed to be inside of them. Ideally, you use the H5P CLI tool to pack the sources into a library file.

Best,
Oliver