Just for information:
The constants for the context levels are described in moodle/lib/accesslib.php:
CONTEXT_SYSTEM = 10;
_USER = 30;
_COURSECAT = 40;
_COURSE = 50;
_MODULE = 70;
_BLOCK = 80;
General developer forum
Databases: contextlevel values?
This discussion has been locked so you can no longer reply to it.