diff --git a/mod/assignment/db/access.php b/mod/assignment/db/access.php index 3c39187673c..73d314534a4 100644 --- a/mod/assignment/db/access.php +++ b/mod/assignment/db/access.php @@ -39,6 +39,18 @@ $capabilities = array( ) ), + 'mod/assignment:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/assignment:submit' => array( 'captype' => 'write', diff --git a/mod/assignment/lang/en/assignment.php b/mod/assignment/lang/en/assignment.php index bef1da47f3c..725983f2d13 100644 --- a/mod/assignment/lang/en/assignment.php +++ b/mod/assignment/lang/en/assignment.php @@ -32,6 +32,7 @@ $string['allownotes_help'] = 'If enabled, students may enter notes into a text a $string['allowresubmit'] = 'Allow resubmitting'; $string['allowresubmit_help'] = 'If enabled, students will be allowed to resubmit assignments after they have been graded (for them to be re-graded).'; $string['alreadygraded'] = 'Your assignment has already been graded and resubmission is not allowed.'; +$string['assignment:addinstance'] = 'Add a new assignment'; $string['assignmentdetails'] = 'Assignment details'; $string['assignment:exportownsubmission'] = 'Export own submission'; $string['assignment:exportsubmission'] = 'Export submission'; diff --git a/mod/assignment/version.php b/mod/assignment/version.php index 4b787e77fc2..544b8a8d829 100644 --- a/mod/assignment/version.php +++ b/mod/assignment/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_assignment'; // Full name of the plugin (used for diagnostics) $module->cron = 60; diff --git a/mod/chat/db/access.php b/mod/chat/db/access.php index 2d6e5d02175..90e4e016d82 100644 --- a/mod/chat/db/access.php +++ b/mod/chat/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/chat:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/chat:chat' => array( 'riskbitmask' => RISK_SPAM, @@ -92,5 +104,3 @@ $capabilities = array( ), ); - - diff --git a/mod/chat/lang/en/chat.php b/mod/chat/lang/en/chat.php index 5a0254400af..34bfc477d1f 100644 --- a/mod/chat/lang/en/chat.php +++ b/mod/chat/lang/en/chat.php @@ -47,6 +47,7 @@ $string['explaingeneralconfig'] = 'These settings are always us $string['explainmethoddaemon'] = 'These settings matter only if you have selected "Chat server daemon" for chat_method'; $string['explainmethodnormal'] = 'These settings matter only if you have selected "Normal method" for chat_method'; $string['generalconfig'] = 'General configuration'; +$string['chat:addinstance'] = 'Add a new chat'; $string['chat:deletelog'] = 'Delete chat logs'; $string['chat:exportparticipatedsession'] = 'Export chat session which you took part in'; $string['chat:exportsession'] = 'Export any chat session'; diff --git a/mod/chat/version.php b/mod/chat/version.php index 48dba991e3a..3342dc619af 100644 --- a/mod/chat/version.php +++ b/mod/chat/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_chat'; // Full name of the plugin (used for diagnostics) $module->cron = 300; diff --git a/mod/choice/db/access.php b/mod/choice/db/access.php index cf3dfb8aee8..1f5d5970959 100644 --- a/mod/choice/db/access.php +++ b/mod/choice/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/choice:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/choice:choose' => array( 'captype' => 'write', diff --git a/mod/choice/lang/en/choice.php b/mod/choice/lang/en/choice.php index c069dc102ca..c1be25c5220 100644 --- a/mod/choice/lang/en/choice.php +++ b/mod/choice/lang/en/choice.php @@ -35,6 +35,7 @@ $string['atleastoneoption'] = 'You need to provide at least one possible answer. $string['full'] = '(Full)'; $string['havetologin'] = 'You have to log in before you can submit your choice'; $string['choice'] = 'Choice'; +$string['choice:addinstance'] = 'Add a new choice'; $string['choiceclose'] = 'Until'; $string['choice:deleteresponses'] = 'Delete responses'; $string['choice:downloadresponses'] = 'Download responses'; diff --git a/mod/choice/version.php b/mod/choice/version.php index 672932ddb77..fb9ef0420ce 100644 --- a/mod/choice/version.php +++ b/mod/choice/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_choice'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/data/db/access.php b/mod/data/db/access.php index 87035f30b1c..652c7c4494c 100644 --- a/mod/data/db/access.php +++ b/mod/data/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/data:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/data:viewentry' => array( 'captype' => 'read', diff --git a/mod/data/lang/en/data.php b/mod/data/lang/en/data.php index 8abba58042a..0740288cb4e 100644 --- a/mod/data/lang/en/data.php +++ b/mod/data/lang/en/data.php @@ -72,6 +72,7 @@ $string['csvfile'] = 'CSV file'; $string['csvimport'] = 'CSV file import'; $string['csvimport_help'] = 'Entries may be imported via a plain text file with a list of field names as the first line, then the data, with one record per line.'; $string['csvwithselecteddelimiter'] = 'CSV text with selected delimiter:'; +$string['data:addinstance'] = 'Add a new database'; $string['data:approve'] = 'Approve unapproved entries'; $string['data:comment'] = 'Write comments'; $string['data:exportallentries'] = 'Export all database entries'; diff --git a/mod/data/version.php b/mod/data/version.php index 1add7a141ff..d31fbf0ab39 100644 --- a/mod/data/version.php +++ b/mod/data/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_data'; // Full name of the plugin (used for diagnostics) $module->cron = 60; diff --git a/mod/feedback/db/access.php b/mod/feedback/db/access.php index fa628d316b5..30c309ae9ac 100644 --- a/mod/feedback/db/access.php +++ b/mod/feedback/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/feedback:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/feedback:view' => array( 'captype' => 'read', diff --git a/mod/feedback/lang/en/feedback.php b/mod/feedback/lang/en/feedback.php index a687ed24e2c..57f24907fd6 100644 --- a/mod/feedback/lang/en/feedback.php +++ b/mod/feedback/lang/en/feedback.php @@ -106,6 +106,7 @@ You can view it here.'; $string['entries_saved'] = 'Your answers have been saved. Thank you.'; $string['export_questions'] = 'Export questions'; $string['export_to_excel'] = 'Export to Excel'; +$string['feedback:addinstance'] = 'Add a new feedback'; $string['feedbackclose'] = 'Close the feedback at'; $string['feedbackcloses'] = 'Feedback closes'; $string['feedback:complete'] = 'Complete a feedback'; diff --git a/mod/feedback/version.php b/mod/feedback/version.php index 542d14a70ff..e3010791206 100644 --- a/mod/feedback/version.php +++ b/mod/feedback/version.php @@ -25,8 +25,8 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_feedback'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/folder/db/access.php b/mod/folder/db/access.php index e6b2c10ee68..39000045092 100644 --- a/mod/folder/db/access.php +++ b/mod/folder/db/access.php @@ -25,6 +25,19 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + + 'mod/folder:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/folder:view' => array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, diff --git a/mod/folder/lang/en/folder.php b/mod/folder/lang/en/folder.php index 790d7b5ef48..3a55366797b 100644 --- a/mod/folder/lang/en/folder.php +++ b/mod/folder/lang/en/folder.php @@ -25,6 +25,7 @@ */ $string['contentheader'] = 'Content'; +$string['folder:addinstance'] = 'Add a new folder'; $string['folder:managefiles'] = 'Manage files in folder module'; $string['folder:view'] = 'View folder content'; $string['foldercontent'] = 'Files and subfolders'; diff --git a/mod/folder/version.php b/mod/folder/version.php index eb10fa2ec1b..3be807f43a4 100644 --- a/mod/folder/version.php +++ b/mod/folder/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_folder'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/forum/db/access.php b/mod/forum/db/access.php index 2c5aa42a783..a92df579527 100644 --- a/mod/forum/db/access.php +++ b/mod/forum/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/forum:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/forum:viewdiscussion' => array( 'captype' => 'read', diff --git a/mod/forum/lang/en/forum.php b/mod/forum/lang/en/forum.php index 88ab2a84124..457ebf010af 100644 --- a/mod/forum/lang/en/forum.php +++ b/mod/forum/lang/en/forum.php @@ -149,6 +149,7 @@ $string['existingsubscribers'] = 'Existing subscribers'; $string['exportdiscussion'] = 'Export whole discussion'; $string['forcessubscribe'] = 'This forum forces everyone to be subscribed'; $string['forum'] = 'Forum'; +$string['forum:addinstance'] = 'Add a new forum'; $string['forum:addnews'] = 'Add news'; $string['forum:addquestion'] = 'Add question'; $string['forumauthorhidden'] = 'Author (hidden)'; diff --git a/mod/forum/version.php b/mod/forum/version.php index 4f142a7ac0f..bce4b6af8f5 100644 --- a/mod/forum/version.php +++ b/mod/forum/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_forum'; // Full name of the plugin (used for diagnostics) $module->cron = 60; diff --git a/mod/glossary/db/access.php b/mod/glossary/db/access.php index 98b67fcb3f3..36f27f7ae43 100644 --- a/mod/glossary/db/access.php +++ b/mod/glossary/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/glossary:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/glossary:write' => array( 'riskbitmask' => RISK_SPAM, diff --git a/mod/glossary/lang/en/glossary.php b/mod/glossary/lang/en/glossary.php index 78d61fa2ec1..71123270c1f 100644 --- a/mod/glossary/lang/en/glossary.php +++ b/mod/glossary/lang/en/glossary.php @@ -170,6 +170,7 @@ $string['fillfields'] = 'Concept and definition are mandatory fields.'; $string['filtername'] = 'Glossary auto-linking'; $string['fullmatch'] = 'Match whole words only'; $string['fullmatch_help'] = 'This setting specifies whether only whole words will be linked, for example, a glossary entry named "construct" will not create a link inside the word "constructivism".'; +$string['glossary:addinstance'] = 'Add a new glossary'; $string['glossary:approve'] = 'Approve unapproved entries'; $string['glossary:comment'] = 'Create comments'; $string['glossary:export'] = 'Export entries'; diff --git a/mod/glossary/version.php b/mod/glossary/version.php index 1cf903e157c..f6ed006f312 100644 --- a/mod/glossary/version.php +++ b/mod/glossary/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2012022000; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_glossary'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/imscp/db/access.php b/mod/imscp/db/access.php index 0b92bafbfa1..31c4d098ce7 100644 --- a/mod/imscp/db/access.php +++ b/mod/imscp/db/access.php @@ -34,6 +34,18 @@ $capabilities = array( ) ), + 'mod/imscp:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + /* TODO: review public portfolio API first! 'mod/imscp:portfolioexport' => array( diff --git a/mod/imscp/lang/en/imscp.php b/mod/imscp/lang/en/imscp.php index d7dd234c345..278d033def0 100644 --- a/mod/imscp/lang/en/imscp.php +++ b/mod/imscp/lang/en/imscp.php @@ -30,6 +30,7 @@ $string['contentheader'] = 'Content'; $string['deploymenterror'] = 'Content package error!'; $string['keepold'] = 'Archive packages'; $string['keepoldexplain'] = 'How many packages should be archived?'; +$string['imscp:addinstance'] = 'Add a new IMS content package'; $string['imscp:view'] = 'View IMS content'; $string['modulename'] = 'IMS content package'; $string['modulename_help'] = 'An IMS content package allows for packages created according to the IMS Content Packaging specification to be displayed in the course.'; diff --git a/mod/imscp/version.php b/mod/imscp/version.php index 2676022e4eb..e0887ef5c2c 100644 --- a/mod/imscp/version.php +++ b/mod/imscp/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_imscp'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/label/db/access.php b/mod/label/db/access.php new file mode 100644 index 00000000000..57677e629b9 --- /dev/null +++ b/mod/label/db/access.php @@ -0,0 +1,41 @@ +. + +/** + * Capability definitions for the label module. + * + * @package mod_label + * @copyright 2012 The Open University + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or late + */ + +defined('MOODLE_INTERNAL') || die(); + +$capabilities = array( + + 'mod/label:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + +); diff --git a/mod/label/lang/en/label.php b/mod/label/lang/en/label.php index cbcbe732d7f..dcdedb0b049 100644 --- a/mod/label/lang/en/label.php +++ b/mod/label/lang/en/label.php @@ -24,6 +24,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +$string['label:addinstance'] = 'Add a new label'; $string['labeltext'] = 'Label text'; $string['modulename'] = 'Label'; $string['modulename_help'] = 'A label enables text and images to be inserted among the activity links on the course page.'; diff --git a/mod/label/version.php b/mod/label/version.php index 01f49769b98..6822156cbe6 100644 --- a/mod/label/version.php +++ b/mod/label/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_label'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/lesson/db/access.php b/mod/lesson/db/access.php index d78341cb73c..4da9931c6be 100644 --- a/mod/lesson/db/access.php +++ b/mod/lesson/db/access.php @@ -28,6 +28,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/lesson:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/lesson:edit' => array( 'riskbitmask' => RISK_XSS, // we want flash and JS in question pages diff --git a/mod/lesson/lang/en/lesson.php b/mod/lesson/lang/en/lesson.php index 7898e78264f..017c10dd977 100644 --- a/mod/lesson/lang/en/lesson.php +++ b/mod/lesson/lang/en/lesson.php @@ -208,6 +208,7 @@ $string['jumps_help'] = 'Each answer (for questions) or description (for content $string['jumpsto'] = 'Jumps to {$a}'; $string['leftduringtimed'] = 'You have left during a timed lesson.
Please click on Continue to restart the lesson.'; $string['leftduringtimednoretake'] = 'You have left during a timed lesson and you are
not allowed to retake or continue the lesson.'; +$string['lesson:addinstance'] = 'Add a new lesson'; $string['lessonattempted'] = 'Lesson attempted'; $string['lessonclosed'] = 'This lesson closed on {$a}.'; $string['lessoncloses'] = 'Lesson closes'; diff --git a/mod/lesson/version.php b/mod/lesson/version.php index c65af966cd4..f5ba2451b56 100644 --- a/mod/lesson/version.php +++ b/mod/lesson/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/lti/db/access.php b/mod/lti/db/access.php index 5f4edc8efef..51c676d8246 100644 --- a/mod/lti/db/access.php +++ b/mod/lti/db/access.php @@ -43,6 +43,18 @@ $capabilities = array( ) ), + 'mod/lti:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/lti:grade' => array( 'riskbitmask' => RISK_XSS, diff --git a/mod/lti/lang/en/lti.php b/mod/lti/lang/en/lti.php index 1ad131a4e9d..60df1eef6a8 100644 --- a/mod/lti/lang/en/lti.php +++ b/mod/lti/lang/en/lti.php @@ -219,6 +219,7 @@ real estate to the tool, and others provide a more integrated feel with the Mood It is possible that browsers will prevent the new window from opening.'; $string['launchoptions'] = 'Launch Options'; $string['lti'] = 'LTI'; +$string['lti:addinstance'] = 'Add a new LTI activity'; $string['lti:addcoursetool'] = 'Grade LTI activities'; $string['lti:grade'] = 'Grade LTI activities'; $string['lti:manage'] = 'Edit LTI activities'; diff --git a/mod/lti/version.php b/mod/lti/version.php index 16fbb7a7b4d..fb6d5ed7e1a 100644 --- a/mod/lti/version.php +++ b/mod/lti/version.php @@ -49,7 +49,7 @@ defined('MOODLE_INTERNAL') || die; -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_lti'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/page/db/access.php b/mod/page/db/access.php index 247d01438c1..54b4739ef11 100644 --- a/mod/page/db/access.php +++ b/mod/page/db/access.php @@ -34,6 +34,19 @@ $capabilities = array( ) ), + 'mod/page:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + + /* TODO: review public portfolio API first! 'mod/page:portfolioexport' => array( diff --git a/mod/page/lang/en/page.php b/mod/page/lang/en/page.php index e24dd4e23d0..98af5a64d2e 100644 --- a/mod/page/lang/en/page.php +++ b/mod/page/lang/en/page.php @@ -38,6 +38,7 @@ $string['modulenameplural'] = 'Pages'; $string['neverseen'] = 'Never seen'; $string['optionsheader'] = 'Options'; $string['page-mod-page-x'] = 'Any page module page'; +$string['page:addinstance'] = 'Add a new page resource'; $string['page:view'] = 'View page content'; $string['pluginadministration'] = 'Page module administration'; $string['pluginname'] = 'Page'; diff --git a/mod/page/version.php b/mod/page/version.php index 5fb8f802eb0..744c4ee544f 100644 --- a/mod/page/version.php +++ b/mod/page/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_page'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/quiz/db/access.php b/mod/quiz/db/access.php index ee7bf4ac399..57f0e7d6236 100644 --- a/mod/quiz/db/access.php +++ b/mod/quiz/db/access.php @@ -40,6 +40,19 @@ $capabilities = array( ) ), + // Ability to add a new quiz to the course. + 'mod/quiz:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + // Ability to do the quiz as a 'student'. 'mod/quiz:attempt' => array( 'riskbitmask' => RISK_SPAM, diff --git a/mod/quiz/lang/en/quiz.php b/mod/quiz/lang/en/quiz.php index c8306dbca6c..cdbc9976d93 100644 --- a/mod/quiz/lang/en/quiz.php +++ b/mod/quiz/lang/en/quiz.php @@ -540,6 +540,7 @@ $string['questiontext'] = 'Question text'; $string['questiontextisempty'] = '[Empty question text]'; $string['questiontype'] = 'Question type {$a}'; $string['questiontypesetupoptions'] = 'Setup options for question types:'; +$string['quiz:addinstance'] = 'Add a new quiz'; $string['quiz:attempt'] = 'Attempt quizzes'; $string['quizavailable'] = 'The quiz is available until: {$a}'; $string['quizclose'] = 'Close the quiz'; diff --git a/mod/quiz/version.php b/mod/quiz/version.php index 578958fdb22..25dba1ab929 100644 --- a/mod/quiz/version.php +++ b/mod/quiz/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011120703; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics) $module->cron = 60; diff --git a/mod/resource/db/access.php b/mod/resource/db/access.php index 54453da95b4..4f729c629ea 100644 --- a/mod/resource/db/access.php +++ b/mod/resource/db/access.php @@ -34,6 +34,18 @@ $capabilities = array( ) ), + 'mod/resource:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + /* TODO: review public portfolio API first! 'mod/resource:portfolioexport' => array( diff --git a/mod/resource/lang/en/resource.php b/mod/resource/lang/en/resource.php index d675cc4875e..ae0ef794e7f 100644 --- a/mod/resource/lang/en/resource.php +++ b/mod/resource/lang/en/resource.php @@ -81,6 +81,7 @@ $string['printheading'] = 'Display resource name'; $string['printheadingexplain'] = 'Display resource name above content? Some display types may not display resource name even if enabled.'; $string['printintro'] = 'Display resource description'; $string['printintroexplain'] = 'Display resource description below content? Some display types may not display description even if enabled.'; +$string['resource:addinstance'] = 'Add a new resource'; $string['resourcecontent'] = 'Files and subfolders'; $string['resourcedetails_sizetype'] = '{$a->size} {$a->type}'; $string['resource:exportresource'] = 'Export resource'; diff --git a/mod/resource/version.php b/mod/resource/version.php index cdb37cb3a1e..1f3a9c9196b 100644 --- a/mod/resource/version.php +++ b/mod/resource/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_resource'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/scorm/db/access.php b/mod/scorm/db/access.php index 101da76dc7a..8efc9ae68c7 100644 --- a/mod/scorm/db/access.php +++ b/mod/scorm/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/scorm:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/scorm:viewreport' => array( 'captype' => 'read', diff --git a/mod/scorm/lang/en/scorm.php b/mod/scorm/lang/en/scorm.php index b5ad5d57bac..9aa0f000574 100644 --- a/mod/scorm/lang/en/scorm.php +++ b/mod/scorm/lang/en/scorm.php @@ -253,6 +253,7 @@ $string['review'] = 'Review'; $string['reviewmode'] = 'Review mode'; $string['scoes'] = 'Learning objects'; $string['score'] = 'Score'; +$string['scorm:addinstance'] = 'Add a new SCORM package'; $string['scormclose'] = 'Until'; $string['scormcourse'] = 'Learning course'; $string['scorm:deleteresponses'] = 'Delete SCORM attempts'; diff --git a/mod/scorm/version.php b/mod/scorm/version.php index 374b9b42360..78b35627274 100644 --- a/mod/scorm/version.php +++ b/mod/scorm/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112901; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics) $module->cron = 300; diff --git a/mod/survey/db/access.php b/mod/survey/db/access.php index 212d71c5d1b..57e04da9562 100644 --- a/mod/survey/db/access.php +++ b/mod/survey/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/survey:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/survey:participate' => array( 'captype' => 'read', diff --git a/mod/survey/lang/en/survey.php b/mod/survey/lang/en/survey.php index 9c61c5869a5..699f5a0e0a9 100644 --- a/mod/survey/lang/en/survey.php +++ b/mod/survey/lang/en/survey.php @@ -234,6 +234,7 @@ $string['scaletimes5'] = 'Almost never,Seldom,Sometimes,Often,Almost always'; $string['seemoredetail'] = 'Click here to see more detail'; $string['selectedquestions'] = 'Selected questions from a scale, all students'; $string['summary'] = 'Summary'; +$string['survey:addinstance'] = 'Add a new survey'; $string['surveycompleted'] = 'You\'ve completed this survey. The graph below shows a summary of your results compared to the class averages.'; $string['survey:download'] = 'Download responses'; $string['surveygraph'] = 'Survey graph'; diff --git a/mod/survey/version.php b/mod/survey/version.php index 531e5bba1dd..d1f3c8a38f7 100644 --- a/mod/survey/version.php +++ b/mod/survey/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_survey'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/url/db/access.php b/mod/url/db/access.php index c0d4d813ded..27063652976 100644 --- a/mod/url/db/access.php +++ b/mod/url/db/access.php @@ -34,6 +34,18 @@ $capabilities = array( ) ), + 'mod/url:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + /* TODO: review public portfolio API first! 'mod/url:portfolioexport' => array( diff --git a/mod/url/lang/en/url.php b/mod/url/lang/en/url.php index b152259ddf7..dacfb0cbe9c 100644 --- a/mod/url/lang/en/url.php +++ b/mod/url/lang/en/url.php @@ -67,4 +67,5 @@ $string['printintro'] = 'Display URL description'; $string['printintroexplain'] = 'Display URL description below content? Some display types may not display description even if enabled.'; $string['rolesinparams'] = 'Include role names in parameters'; $string['serverurl'] = 'Server URL'; +$string['url:addinstance'] = 'Add a new URL resource'; $string['url:view'] = 'View URL'; diff --git a/mod/url/version.php b/mod/url/version.php index 28c0ee49d0d..66357e0c2b9 100644 --- a/mod/url/version.php +++ b/mod/url/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_url'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/wiki/db/access.php b/mod/wiki/db/access.php index 40b0d2654bc..d295aba7902 100644 --- a/mod/wiki/db/access.php +++ b/mod/wiki/db/access.php @@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/wiki:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/wiki:viewpage' => array( 'captype' => 'read', diff --git a/mod/wiki/lang/en/wiki.php b/mod/wiki/lang/en/wiki.php index 09a6c586a21..f778f0278ea 100644 --- a/mod/wiki/lang/en/wiki.php +++ b/mod/wiki/lang/en/wiki.php @@ -225,6 +225,7 @@ $string['wikinowikitext'] = 'No wiki text'; $string['wikiorderedlist'] = 'Ordered list'; $string['wikisettings'] = 'Wiki settings'; $string['wikiunorderedlist'] = 'Unordered list'; +$string['wiki:addinstance'] = 'Add a new wiki'; $string['wiki:createpage'] = 'Create new wiki pages'; $string['wiki:editcomment'] = 'Add comments to pages'; $string['wiki:editpage'] = 'Save wiki pages'; diff --git a/mod/wiki/version.php b/mod/wiki/version.php index b2895459fa9..c17672bffb7 100644 --- a/mod/wiki/version.php +++ b/mod/wiki/version.php @@ -33,7 +33,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_wiki'; // Full name of the plugin (used for diagnostics) $module->cron = 0; diff --git a/mod/workshop/db/access.php b/mod/workshop/db/access.php index d1e38e83e21..59ae764c722 100644 --- a/mod/workshop/db/access.php +++ b/mod/workshop/db/access.php @@ -40,6 +40,19 @@ $capabilities = array( ) ), + // Ability to add a new workshop to the course. + 'mod/workshop:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + // Ability to change the current phase (stage) of the workshop, for example // allow submitting, start assessment period, close workshop etc. 'mod/workshop:switchphase' => array( diff --git a/mod/workshop/lang/en/workshop.php b/mod/workshop/lang/en/workshop.php index f51361fc875..844d0c7321c 100644 --- a/mod/workshop/lang/en/workshop.php +++ b/mod/workshop/lang/en/workshop.php @@ -251,6 +251,7 @@ $string['useselfassessment_help'] = 'If enabled, a user may be allocated their o $string['useselfassessment_desc'] = 'Students may assess their own work'; $string['weightinfo'] = 'Weight: {$a}'; $string['withoutsubmission'] = 'Reviewer without own submission'; +$string['workshop:addinstance'] = 'Add a new workshop'; $string['workshop:allocate'] = 'Allocate submissions for review'; $string['workshop:editdimensions'] = 'Edit assessment forms'; $string['workshopfeatures'] = 'Workshop features'; diff --git a/mod/workshop/version.php b/mod/workshop/version.php index 9fd8a8cdab3..28505d53b0a 100644 --- a/mod/workshop/version.php +++ b/mod/workshop/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011112900; // Requires this Moodle version +$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2012030100.04; // Requires this Moodle version $module->component = 'mod_workshop'; // Full name of the plugin (used for diagnostics) $module->cron = 0;