a problem with modinfo field in mdl_course database table

a problem with modinfo field in mdl_course database table

by Lukasz Czyzewski -
Number of replies: 4
Hello to everyone! smile

I'm writing a piece of software that will copy course content from one instance of Moodle to another.

Everything is pretty straightforward except for 'modinfo' field in the 'mdl_course' table.

Can anyone provide me with some sort of explanation about this field?

How it is build?

What is its exact purpose?

Thank you!

Best regards,
Lucas (lucas.7bd@gmail.com).
Average of ratings: -
In reply to Lukasz Czyzewski

Re: a problem with modinfo field in mdl_course database table

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Its a cache, for performance reasons. Just put nothing there, and it should be rebuilt on the fly.
In reply to Tim Hunt

Re: a problem with modinfo field in mdl_course database table

by Lukasz Czyzewski -
Thank you for your answer!

My first guess about modinfo field was that it contains information about order of modules in a course.

Do you know where moodle stores this kind of data?

Best regards,
Lukasz Cz.
In reply to Lukasz Czyzewski

Re: a problem with modinfo field in mdl_course database table

by Przemyslaw Stencel -
...information about order of modules in a course. Do you know where moodle stores this kind of data?

In the "sequence" field of the "mdl_course_sections" table.

Cheers,
Przemek