your code does not comply well with Moodle standard guidelines:
in particular:
functions and in-line code should not be mixed - functions should sit within namespaced classes or within the locallib.php file.
Functions must be namespaced correctly or must use the plugin frankenstyle prefix (mod_capquiz) - or because this is an activity module you can also just use "nscapquiz"
In-line files (view.php/action.php etc) should call require_login at the top of the file (not in a wrapper function called by the file)
In-line files should make appropriate capability checks at the top of the file (not in a wrapper function called by the file.)
This makes it hard to perform a complete review at this stage and blocks approval in the plugins db.
Hi There,
your code does not comply well with Moodle standard guidelines:
in particular:
This makes it hard to perform a complete review at this stage and blocks approval in the plugins db.