Using quiz access rules outside of the quiz

Using quiz access rules outside of the quiz

by Oleg Sychev -
Number of replies: 0
Picture of Core developers Picture of Plugin developers

I really wonder, why quiz access rules are QUIZ access rules? Same access rules could be useful to other modules too. I certainly want to use them in our module "poasassignment", as I have a need to block access to some functions in similar way and don't want to duplicate all good work done by Tim in quiz access rules.

So the question is - is there any (preferably documented) form of interface for the modules, using quiz access rules (similar to a good docs/API for the modules using question engine)?  If not, where I have to look to implement access rules support in my module? Besides calling rule to determine possible access, it's probably have to do something with mod_form, add/update/delete functions in lib.php and module backup/restore. Any help is appreciated.

Average of ratings: -