MDL-26105 blocks: readded the my moodle page's page type list generator function

This commit is contained in:
Andrew Davis (andyjdavis)
2011-06-16 12:05:48 +02:00
committed by Eloy Lafuente (stronk7)
parent da4772a276
commit 84a1bea972
+12
View File
@@ -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.