MDL-26105 blocks: readded the my moodle page's page type list generator function
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
da4772a276
commit
84a1bea972
@@ -1654,6 +1654,18 @@ function plugin_pagetypelist($pagetype, $parentcontext = null, $currentcontext =
|
||||
return $patterns;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the page type list for the my moodle page
|
||||
*
|
||||
* @param string $pagetype
|
||||
* @param stdClass $parentcontext
|
||||
* @param stdClass $currentcontext
|
||||
* @return array
|
||||
*/
|
||||
function my_pagetypelist($pagetype, $parentcontext = null, $currentcontext = null) {
|
||||
return array('my-index' => 'my-index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the page type list for a module by either locating and using the modules callback
|
||||
* or by generating a default list.
|
||||
|
||||
Reference in New Issue
Block a user