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
moodle
moodle
Commits
4beb17e5
Commit
4beb17e5
authored
Oct 01, 2021
by
Andrew Nicols
Browse files
Merge branch 'MDL-70862' of
https://github.com/marcusboon/moodle
parents
529a5588
d4a48daa
Changes
2
Hide whitespace changes
Inline
Side-by-side
grade/lib.php
View file @
4beb17e5
...
...
@@ -887,6 +887,15 @@ function grade_get_plugin_info($courseid, $active_type, $active_plugin) {
$plugin_info
[
'export'
]
=
$exports
;
}
// Let other plugins add plugins here so that we get extra tabs
// in the gradebook.
$callbacks
=
get_plugins_with_function
(
'extend_gradebook_plugininfo'
,
'lib.php'
);
foreach
(
$callbacks
as
$plugins
)
{
foreach
(
$plugins
as
$pluginfunction
)
{
$plugin_info
=
$pluginfunction
(
$plugin_info
,
$courseid
);
}
}
foreach
(
$plugin_info
as
$plugin_type
=>
$plugins
)
{
if
(
!
empty
(
$plugins
->
id
)
&&
$active_plugin
==
$plugins
->
id
)
{
$plugin_info
[
'strings'
][
'active_plugin_str'
]
=
$plugins
->
string
;
...
...
grade/upgrade.txt
View file @
4beb17e5
This file describes API changes in /grade/* ;
Information provided here is intended especially for developers.
=== 4.0 ===
* There is a new callback inside of grade_get_plugin_info called extend_gradebook_plugininfo
which allows for new tabs to be added to the gradebook.
=== 3.7 ===
* The grade_cron() function has been removed. Please use grade_history_cleanup_task and grade_cron_task scheduled tasks instead.
...
...
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