Some trivial changes to lib.php to conform to Moodle coding guidelines

This commit is contained in:
Mark Nelson 2013-07-25 12:32:39 +08:00
parent cf0bdf7580
commit 04cf229d16

22
lib.php
View file

@ -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;
} }
} }