Skip to content
Snippets Groups Projects
Commit 9d66aa23 authored by Tim Schroeder's avatar Tim Schroeder
Browse files

Merge branch 'remove-duplicate-implementation' into 'testing4'

removed old implementation for moodle 3 compatibility

See merge request moodle_l2p/moodle-mod_pdfannotator!209
parents 46beb6f0 5623294d
Branches
No related tags found
No related merge requests found
......@@ -37,12 +37,6 @@ if (!defined('MOD_PURPOSE_COMMUNICATION')) {
* @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;
......@@ -68,6 +62,8 @@ function pdfannotator_supports($feature) {
return false;
case FEATURE_COMMENT:
return false;
case FEATURE_MOD_PURPOSE:
return MOD_PURPOSE_COMMUNICATION;
default:
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment