MDL-20712 using just $capablities for capability definition array, all other files in db/* do not use component names in definition array; old capability array names are of course supported

This commit is contained in:
Petr Skoda 2009-11-04 19:24:12 +00:00
parent e3acc8af7a
commit 0ac940b3bf
64 changed files with 92 additions and 124 deletions

View file

@ -14,7 +14,7 @@
//
// It is important that capability names are unique. The naming convention
// for capabilities that are specific to modules and blocks is as follows:
// [mod/block]/<component_name>:<capabilityname>
// [mod/block]/<plugin_name>:<capabilityname>
//
// component_name should be the same as the directory name of the mod or block.
//
@ -25,13 +25,10 @@
// block/recent_activity:view
// moodle/site:deleteuser
//
// The variable name for the capability definitions array follows the format
// $<componenttype>_<component_name>_capabilities
//
// For the core capabilities, the variable is $moodle_capabilities.
// The variable name for the capability definitions array is $capabilities
$block_rss_client_capabilities = array(
$capabilities = array(
'block/rss_client:manageownfeeds' => array(