From 43038ce6d75370c525363541dff515c39602fc15 Mon Sep 17 00:00:00 2001 From: dhawes Date: Mon, 25 Oct 2004 00:09:47 +0000 Subject: [PATCH] added comment for new specialization function --- blocks/moodleblock.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index dfb34d73bc..4d59f1995e 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -290,6 +290,11 @@ class MoodleBlock { $this->specialization(); } + /** + * This function is called on your subclass right after an instance is loaded + * Use this function to act on instance data just after it's loaded and before anything else is done + * For instance: if your block will have different title's dependant on location (site, course, blog, etc) + */ function specialization() { // Just to make sure that this method exists. return; -- 2.39.5