Skip to content
Snippets Groups Projects
Commit 0ca1c951 authored by Anisa Kusumadewi's avatar Anisa Kusumadewi
Browse files

Merge branch 'make-feature-mod-purpose-just-for-version4' into 'testing4'

make feature_of_purpose just for V4

See merge request moodle_l2p/moodle-mod_pdfannotator!206
parents 412b6a00 9c48b32c
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,12 @@ require_once($CFG->dirroot . '/mod/pdfannotator/locallib.php');
* @return mixed True if module supports feature, false if not, null if doesn't know
*/
function pdfannotator_supports($feature) {
if (defined('FEATURE_MOD_PURPOSE')) {
// Only defined in M4.0+.
if ($feature === FEATURE_MOD_PURPOSE) {
return MOD_PURPOSE_COMMUNICATION;
}
}
switch($feature) {
case FEATURE_GROUPS:
return true;
......@@ -54,8 +60,6 @@ function pdfannotator_supports($feature) {
return true;
case FEATURE_COMMENT:
return true;
case FEATURE_MOD_PURPOSE:
return MOD_PURPOSE_COMMUNICATION;
default:
return null;
}
......
......@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator';
$plugin->version = 2023033000;
$plugin->version = 2023040400;
$plugin->release = 'PDF Annotator v1.5 release 3';
$plugin->requires = 2021051700;
$plugin->maturity = MATURITY_STABLE;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment