mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
MDL-70528 h5pactivity: Fix block can't be added to h5pactivity page.
This commit is contained in:
parent
fd840ab59c
commit
7a77493ba5
@ -53,7 +53,7 @@ class fetch_addable_blocks extends external_api {
|
||||
return new external_function_parameters(
|
||||
[
|
||||
'pagecontextid' => new external_value(PARAM_INT, 'The context ID of the page.'),
|
||||
'pagetype' => new external_value(PARAM_ALPHAEXT, 'The type of the page.'),
|
||||
'pagetype' => new external_value(PARAM_ALPHANUMEXT, 'The type of the page.'),
|
||||
'pagelayout' => new external_value(PARAM_ALPHA, 'The layout of the page.')
|
||||
]
|
||||
);
|
||||
|
@ -314,11 +314,11 @@ function h5pactivity_reset_gradebook(int $courseid, string $type=''): void {
|
||||
* Return a list of page types
|
||||
*
|
||||
* @param string $pagetype current page type
|
||||
* @param stdClass $parentcontext Block's parent context
|
||||
* @param stdClass|null $parentcontext Block's parent context
|
||||
* @param stdClass $currentcontext Current context of block
|
||||
* @return array array of page types and it's names
|
||||
*/
|
||||
function h5pactivity_page_type_list(string $pagetype, stdClass $parentcontext, stdClass $currentcontext): array {
|
||||
function h5pactivity_page_type_list(string $pagetype, ?stdClass $parentcontext, stdClass $currentcontext): array {
|
||||
$modulepagetype = [
|
||||
'mod-h5pactivity-*' => get_string('page-mod-h5pactivity-x', 'h5pactivity'),
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user