Permalink
Browse files

MDL-26105 blocks: readded the my moodle page's page type list generat…

…or function
  • Loading branch information...
1 parent da4772a commit 84a1bea9723e213be12a410eceec4c977dc9947a @andyjdavis andyjdavis committed with stronk7 Jun 16, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/blocklib.php
View
@@ -1655,6 +1655,18 @@ function plugin_pagetypelist($pagetype, $parentcontext = null, $currentcontext =
}
/**
+ * 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.
*

0 comments on commit 84a1bea

Please sign in to comment.