Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-mod_pdfannotator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-mod_pdfannotator
Commits
5623294d
Unverified
Commit
5623294d
authored
2 years ago
by
Tim Schroeder
Browse files
Options
Downloads
Patches
Plain Diff
removed old implementation for moodle 3 compatibility
parent
46beb6f0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib.php
+2
-6
2 additions, 6 deletions
lib.php
with
2 additions
and
6 deletions
lib.php
+
2
−
6
View file @
5623294d
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment