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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-mod_pdfannotator
Commits
9c48b32c
Commit
9c48b32c
authored
2 years ago
by
Anisa
Browse files
Options
Downloads
Patches
Plain Diff
make feature_of_purpose just for V4
parent
9a31279a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib.php
+6
-2
6 additions, 2 deletions
lib.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
7 additions
and
3 deletions
lib.php
+
6
−
2
View file @
9c48b32c
...
@@ -29,6 +29,12 @@ require_once($CFG->dirroot . '/mod/pdfannotator/locallib.php');
...
@@ -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
* @return mixed True if module supports feature, false if not, null if doesn't know
*/
*/
function
pdfannotator_supports
(
$feature
)
{
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
)
{
switch
(
$feature
)
{
case
FEATURE_GROUPS
:
case
FEATURE_GROUPS
:
return
true
;
return
true
;
...
@@ -54,8 +60,6 @@ function pdfannotator_supports($feature) {
...
@@ -54,8 +60,6 @@ function pdfannotator_supports($feature) {
return
true
;
return
true
;
case
FEATURE_COMMENT
:
case
FEATURE_COMMENT
:
return
true
;
return
true
;
case
FEATURE_MOD_PURPOSE
:
return
MOD_PURPOSE_COMMUNICATION
;
default
:
default
:
return
null
;
return
null
;
}
}
...
...
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
9c48b32c
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
();
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$plugin
->
component
=
'mod_pdfannotator'
;
$plugin
->
component
=
'mod_pdfannotator'
;
$plugin
->
version
=
20230
330
00
;
$plugin
->
version
=
20230
404
00
;
$plugin
->
release
=
'PDF Annotator v1.5 release 3'
;
$plugin
->
release
=
'PDF Annotator v1.5 release 3'
;
$plugin
->
requires
=
2021051700
;
$plugin
->
requires
=
2021051700
;
$plugin
->
maturity
=
MATURITY_STABLE
;
$plugin
->
maturity
=
MATURITY_STABLE
;
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