diff --git a/lib/blocklib.php b/lib/blocklib.php index 8489fb87032..0547d9425cf 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -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.