Hello guys , How to diferentiate in the mdl_context table if it is a course context or a module, user etc. I want to manually insert a user into the course, using SQL instead of the Moodle API.
Thanks in advance!
the contextlevel field. 50 = course, 70 = module, etc.
These values are constants defined in lib/accesslib.php.
I'd like that added as a Comment attached to the contextlevel field. That way, for those using mysql, it would display as a tooltip when hovering over the fieldname when browsing the table in phpMyAdmin.