Permalink
Browse files

added comment for new specialization function

  • Loading branch information...
1 parent e101802 commit 43038ce6d75370c525363541dff515c39602fc15 dhawes committed Oct 25, 2004
Showing with 5 additions and 0 deletions.
  1. +5 −0 blocks/moodleblock.class.php
@@ -290,6 +290,11 @@ function load_instance($instance) {
$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;

0 comments on commit 43038ce

Please sign in to comment.