Skip to content

Commit

Permalink
MDL-44725 Availability: Replace groupmembersonly - FEATURE_xx (6)
Browse files Browse the repository at this point in the history
Remove old FEATURE_GROUPMEMBERSONLY as no longer required.
  • Loading branch information
sammarshallou committed Sep 2, 2014
1 parent 48c79eb commit 9c85baa
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 33 deletions.
2 changes: 1 addition & 1 deletion lib/testing/tests/generator_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function test_create_module() {
'cmidnumber' => 'IDNUM', // Note: alternatively can have key 'idnumber'.
// Module supports FEATURE_GROUPS;
'groupmode' => SEPARATEGROUPS, // Note: will be reset to 0 if course groupmodeforce is set.
// Module supports FEATURE_GROUPINGS or module supports FEATURE_GROUPMEMBERSONLY:
// Module supports FEATURE_GROUPINGS.
'groupingid' => $grouping->id,
);

Expand Down
2 changes: 0 additions & 2 deletions mod/assign/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ function assign_supports($feature) {
return true;
case FEATURE_GROUPINGS:
return true;
case FEATURE_GROUPMEMBERSONLY:
return true;
case FEATURE_MOD_INTRO:
return true;
case FEATURE_COMPLETION_TRACKS_VIEWS:
Expand Down
1 change: 0 additions & 1 deletion mod/book/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ function book_supports($feature) {
case FEATURE_MOD_ARCHETYPE: return MOD_ARCHETYPE_RESOURCE;
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return false;
Expand Down
2 changes: 0 additions & 2 deletions mod/chat/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1201,8 +1201,6 @@ function chat_supports($feature) {
return true;
case FEATURE_GROUPINGS:
return true;
case FEATURE_GROUPMEMBERSONLY:
return true;
case FEATURE_MOD_INTRO:
return true;
case FEATURE_BACKUP_MOODLE2:
Expand Down
2 changes: 0 additions & 2 deletions mod/choice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,6 @@ function choice_get_extra_capabilities() {
/**
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_GRADE_HAS_GRADE
Expand All @@ -808,7 +807,6 @@ function choice_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return true;
case FEATURE_GROUPINGS: return true;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_COMPLETION_HAS_RULES: return true;
Expand Down
1 change: 0 additions & 1 deletion mod/data/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2693,7 +2693,6 @@ function data_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return true;
case FEATURE_GROUPINGS: return true;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return true;
Expand Down
2 changes: 0 additions & 2 deletions mod/feedback/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function feedback_get_extra_capabilities() {
/**
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_GRADE_HAS_GRADE
Expand All @@ -64,7 +63,6 @@ function feedback_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return true;
case FEATURE_GROUPINGS: return true;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_COMPLETION_HAS_RULES: return true;
Expand Down
1 change: 0 additions & 1 deletion mod/folder/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function folder_supports($feature) {
case FEATURE_MOD_ARCHETYPE: return MOD_ARCHETYPE_RESOURCE;
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return false;
Expand Down
2 changes: 0 additions & 2 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ function forum_delete_instance($id) {
*
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_COMPLETION_HAS_RULES
Expand All @@ -318,7 +317,6 @@ function forum_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return true;
case FEATURE_GROUPINGS: return true;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_COMPLETION_HAS_RULES: return true;
Expand Down
1 change: 0 additions & 1 deletion mod/glossary/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +2925,6 @@ function glossary_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_COMPLETION_HAS_RULES: return true;
Expand Down
1 change: 0 additions & 1 deletion mod/imscp/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function imscp_supports($feature) {
case FEATURE_MOD_ARCHETYPE: return MOD_ARCHETYPE_RESOURCE;
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return false;
Expand Down
2 changes: 0 additions & 2 deletions mod/label/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ function label_get_extra_capabilities() {
* @uses FEATURE_IDNUMBER
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_GRADE_HAS_GRADE
Expand All @@ -174,7 +173,6 @@ function label_supports($feature) {
case FEATURE_IDNUMBER: return false;
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return false;
case FEATURE_GRADE_HAS_GRADE: return false;
Expand Down
2 changes: 0 additions & 2 deletions mod/lesson/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,6 @@ function lesson_get_extra_capabilities() {
/**
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_GRADE_HAS_GRADE
Expand All @@ -741,7 +740,6 @@ function lesson_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return false;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return true;
Expand Down
1 change: 0 additions & 1 deletion mod/lti/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ function lti_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return true;
Expand Down
1 change: 0 additions & 1 deletion mod/page/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function page_supports($feature) {
case FEATURE_MOD_ARCHETYPE: return MOD_ARCHETYPE_RESOURCE;
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return false;
Expand Down
1 change: 0 additions & 1 deletion mod/quiz/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,6 @@ function quiz_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return true;
case FEATURE_GROUPINGS: return true;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_COMPLETION_HAS_RULES: return true;
Expand Down
1 change: 0 additions & 1 deletion mod/resource/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function resource_supports($feature) {
case FEATURE_MOD_ARCHETYPE: return MOD_ARCHETYPE_RESOURCE;
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return false;
Expand Down
2 changes: 0 additions & 2 deletions mod/scorm/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,6 @@ function scorm_pluginfile($course, $cm, $context, $filearea, $args, $forcedownlo
/**
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_COMPLETION_HAS_RULES
Expand All @@ -1003,7 +1002,6 @@ function scorm_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_COMPLETION_HAS_RULES: return true;
Expand Down
2 changes: 0 additions & 2 deletions mod/survey/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,6 @@ function survey_get_extra_capabilities() {
/**
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_GRADE_HAS_GRADE
Expand All @@ -784,7 +783,6 @@ function survey_supports($feature) {
switch($feature) {
case FEATURE_GROUPS: return true;
case FEATURE_GROUPINGS: return true;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return false;
Expand Down
1 change: 0 additions & 1 deletion mod/url/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function url_supports($feature) {
case FEATURE_MOD_ARCHETYPE: return MOD_ARCHETYPE_RESOURCE;
case FEATURE_GROUPS: return false;
case FEATURE_GROUPINGS: return false;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
case FEATURE_GRADE_HAS_GRADE: return false;
Expand Down
3 changes: 0 additions & 3 deletions mod/wiki/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ function wiki_reset_course_form_definition(&$mform) {
*
* @uses FEATURE_GROUPS
* @uses FEATURE_GROUPINGS
* @uses FEATURE_GROUPMEMBERSONLY
* @uses FEATURE_MOD_INTRO
* @uses FEATURE_COMPLETION_TRACKS_VIEWS
* @uses FEATURE_COMPLETION_HAS_RULES
Expand All @@ -214,8 +213,6 @@ function wiki_supports($feature) {
return true;
case FEATURE_GROUPINGS:
return true;
case FEATURE_GROUPMEMBERSONLY:
return true;
case FEATURE_MOD_INTRO:
return true;
case FEATURE_COMPLETION_TRACKS_VIEWS:
Expand Down
1 change: 0 additions & 1 deletion mod/workshop/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ function workshop_supports($feature) {
case FEATURE_GRADE_HAS_GRADE: return true;
case FEATURE_GROUPS: return true;
case FEATURE_GROUPINGS: return true;
case FEATURE_GROUPMEMBERSONLY: return true;
case FEATURE_MOD_INTRO: return true;
case FEATURE_BACKUP_MOODLE2: return true;
case FEATURE_COMPLETION_TRACKS_VIEWS:
Expand Down

0 comments on commit 9c85baa

Please sign in to comment.