: // // component_name should be the same as the directory name of the mod or block. // // Core moodle capabilities are defined thus: // moodle/: // // Examples: mod/forum:viewpost // block/recent_activity:view // moodle/site:deleteuser // // The variable name for the capability definitions array follows the format // $__capabilities // // For the core capabilities, the variable is $moodle_capabilities. $block_rss_client_capabilities = array( 'block/rss_client:createprivatefeeds' => array( 'captype' => 'write', 'contextlevel' => CONTEXT_BLOCK, 'legacy' => array( 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'admin' => CAP_ALLOW ) ), 'block/rss_client:createsharedfeeds' => array( 'riskbitmask' => RISK_SPAM, 'captype' => 'write', 'contextlevel' => CONTEXT_BLOCK, 'legacy' => array( 'editingteacher' => CAP_ALLOW, 'admin' => CAP_ALLOW ) ), 'block/rss_client:manageownfeeds' => array( 'captype' => 'write', 'contextlevel' => CONTEXT_BLOCK, 'legacy' => array( 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'admin' => CAP_ALLOW ) ), 'block/rss_client:manageanyfeeds' => array( 'riskbitmask' => RISK_SPAM, 'captype' => 'write', 'contextlevel' => CONTEXT_BLOCK, 'legacy' => array( 'admin' => CAP_ALLOW ) ) ); ?>