mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
MDL-68918 mod_h5pactivity: add context to get_h5pactivities_by_courses
This commit is contained in:
parent
111b293f61
commit
2bdd6b120c
2 changed files with 14 additions and 3 deletions
|
@ -132,6 +132,9 @@ class h5pactivity_summary_exporter extends exporter {
|
|||
'coursemodule' => [
|
||||
'type' => PARAM_INT
|
||||
],
|
||||
'context' => [
|
||||
'type' => PARAM_INT
|
||||
],
|
||||
'introfiles' => [
|
||||
'type' => external_files::get_properties_for_exporter(),
|
||||
'multiple' => true
|
||||
|
@ -197,6 +200,7 @@ class h5pactivity_summary_exporter extends exporter {
|
|||
|
||||
$values = [
|
||||
'coursemodule' => $context->instanceid,
|
||||
'context' => $context->id,
|
||||
];
|
||||
|
||||
$values['introfiles'] = external_util::get_area_files($context->id, 'mod_h5pactivity', 'intro', false, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue