Some trivial changes to lib.php to conform to Moodle coding guidelines
This commit is contained in:
parent
cf0bdf7580
commit
04cf229d16
1 changed files with 17 additions and 11 deletions
22
lib.php
22
lib.php
|
@ -284,14 +284,20 @@ function customcert_user_complete($course, $user, $mod, $customcert) {
|
||||||
*/
|
*/
|
||||||
function customcert_supports($feature) {
|
function customcert_supports($feature) {
|
||||||
switch ($feature) {
|
switch ($feature) {
|
||||||
case FEATURE_GROUPS: return true;
|
case FEATURE_GROUPS:
|
||||||
case FEATURE_GROUPINGS: return true;
|
return true;
|
||||||
case FEATURE_GROUPMEMBERSONLY: return true;
|
case FEATURE_GROUPINGS:
|
||||||
case FEATURE_MOD_INTRO: return true;
|
return true;
|
||||||
case FEATURE_COMPLETION_TRACKS_VIEWS: return true;
|
case FEATURE_GROUPMEMBERSONLY:
|
||||||
case FEATURE_BACKUP_MOODLE2: return true;
|
return true;
|
||||||
|
case FEATURE_MOD_INTRO:
|
||||||
default: return null;
|
return true;
|
||||||
|
case FEATURE_COMPLETION_TRACKS_VIEWS:
|
||||||
|
return true;
|
||||||
|
case FEATURE_BACKUP_MOODLE2:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue