Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
moodle-assignfeedback_editpdfplus
Commits
ca855e96
Commit
ca855e96
authored
Sep 11, 2017
by
M. Chardon
Browse files
correction visu menu
parent
dc4ff52e
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib.php
View file @
ca855e96
...
...
@@ -79,9 +79,11 @@ function assignfeedback_editpdfplus_pluginfile($course, $cm, context $context, $
* @param context_course $context
*/
function
assignfeedback_editpdfplus_extend_navigation_course
(
navigation_node
$navigation
,
stdClass
$course
,
context_course
$context
)
{
$url
=
new
moodle_url
(
'/mod/assign/feedback/editpdfplus/view_admin.php'
,
array
(
'id'
=>
$course
->
id
));
$feedbackadminnode
=
navigation_node
::
create
(
'Feedback : configuration'
,
$url
,
navigation_node
::
TYPE_CUSTOM
,
'Bars d\'outils'
,
'editpdfplusadmin'
,
new
pix_icon
(
'i/grades'
,
""
));
$navigation
->
add_node
(
$feedbackadminnode
);
if
(
has_capability
(
'assignfeedback/editpdfplus:use'
,
$context
,
null
,
false
)
&&
has_capability
(
'assignfeedback/editpdfplus:managetools'
,
$context
,
null
,
false
))
{
$url
=
new
moodle_url
(
'/mod/assign/feedback/editpdfplus/view_admin.php'
,
array
(
'id'
=>
$course
->
id
));
$feedbackadminnode
=
navigation_node
::
create
(
'Feedback : configuration'
,
$url
,
navigation_node
::
TYPE_CUSTOM
,
'Bars d\'outils'
,
'editpdfplusadmin'
,
new
pix_icon
(
'i/grades'
,
""
));
$navigation
->
add_node
(
$feedbackadminnode
);
}
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment