From 84a1bea9723e213be12a410eceec4c977dc9947a Mon Sep 17 00:00:00 2001 From: "Andrew Davis (andyjdavis)" Date: Thu, 16 Jun 2011 16:40:01 +0800 Subject: [PATCH] MDL-26105 blocks: readded the my moodle page's page type list generator function --- lib/blocklib.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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.