capabilities problem

capabilities problem

by tran van thuong -
Number of replies: 1

hi all,

In moodle 1.9 has mdl_capabilities table, now i am creating new module but this need to get capabilities string without string, moodle provided, and i want to add new capabilites but i don't understand some its field. how to add new capabilities to mdl_capabilities. Please tell me the mean of field in mdl_capabilities, the foreign key and it refer to table?

Thanks!

Thuong Tran Van

Email: tranthuong882003@yahoo.com

Average of ratings: -
In reply to tran van thuong

Re: capabilities problem

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The correct way to add new capabilities for your module is to create a file called access.php in your modules DB folder (mod/mymodule/db/access.php).

This is documented at Development:NEWMODULE Adding capabilities Which I have just substantially edited to make it clearer.