Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moodle 4 logo and purpose #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@
* @return mixed true if the feature is supported, null if unknown
*/
function hotpot_supports($feature) {

global $CFG;
if ($CFG->branch >= 400) {
if ($feature == FEATURE_MOD_PURPOSE) {
return MOD_PURPOSE_ASSESSMENT;
}
}
// these constants are defined in "lib/moodlelib.php"
// they are not all defined in Moodle 2.0, so we
// check each one is defined before trying to use it
Expand All @@ -70,7 +75,7 @@ function hotpot_supports($feature) {
'FEATURE_PLAGIARISM' => false,
'FEATURE_RATE' => false,
'FEATURE_SHOW_DESCRIPTION' => true, // default=false (Moodle 2.2)
'FEATURE_USES_QUESTIONS' => false
'FEATURE_USES_QUESTIONS' => false,
);
foreach ($constants as $constant => $value) {
if (defined($constant) && $feature==constant($constant)) {
Expand Down
Loading