mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Merge branch 'MDL-69270-310' of git://github.com/ferranrecio/moodle into MOODLE_310_STABLE
This commit is contained in:
commit
10ba6d0aa1
12 changed files with 306 additions and 4 deletions
|
@ -83,6 +83,15 @@ if ($contenttype->can_manage($content)) {
|
|||
false,
|
||||
$attributes
|
||||
));
|
||||
|
||||
if ($contenttype->can_upload()) {
|
||||
$actionmenu->add_secondary_action(new action_menu_link(
|
||||
new moodle_url('/contentbank/upload.php', ['contextid' => $context->id, 'id' => $content->get_id()]),
|
||||
new pix_icon('i/upload', get_string('upload')),
|
||||
get_string('replacecontent', 'contentbank'),
|
||||
false
|
||||
));
|
||||
}
|
||||
}
|
||||
if ($contenttype->can_download($content)) {
|
||||
// Add the download content item to the menu.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue