MDL-75275 mod_data: Add ##actionsmenu## action tag

This commit is contained in:
Sara Arjona
2022-08-19 08:38:33 +02:00
parent fd1b874449
commit 2acda39537
8 changed files with 638 additions and 1 deletions
+4
View File
@@ -276,6 +276,10 @@ class manager {
$options['comments'] = true;
$options['ratings'] = true;
}
if ($templatename === 'listtemplate') {
// The "Show more" button should be only displayed in the listtemplate.
$options['showmore'] = true;
}
return new template($this, $templatecontent, $options);
}