Skip to content

Commit

Permalink
added comment for new specialization function
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawes committed Oct 25, 2004
1 parent e101802 commit 43038ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blocks/moodleblock.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ function load_instance($instance) {
$this->specialization(); $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() { function specialization() {
// Just to make sure that this method exists. // Just to make sure that this method exists.
return; return;
Expand Down

0 comments on commit 43038ce

Please sign in to comment.