From: jerome Date: Thu, 18 Sep 2008 05:54:23 +0000 (+0000) Subject: MDL-15402: add comments to the repository plugin_init() function X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=83a018ed6723ebbda15f4b5a73197575f1ec92ea;p=moodle.git MDL-15402: add comments to the repository plugin_init() function --- diff --git a/repository/flickr_public/repository.class.php b/repository/flickr_public/repository.class.php index 2d4945f7c1..d52c18460b 100644 --- a/repository/flickr_public/repository.class.php +++ b/repository/flickr_public/repository.class.php @@ -280,7 +280,7 @@ class repository_flickr_public extends repository { } /** - * + * is run when moodle administrator add the plugin */ public static function plugin_init() { //here we create a default instance for this type diff --git a/repository/lib.php b/repository/lib.php index 19d45ed4ab..62cf8ac6bd 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -904,13 +904,9 @@ abstract class repository { } /** - * function which is run when a type is created - * This should be a function from a type, but as I plugin wrtie, only write - * a class extended from repository class, the init() for type has been placed - * into the repository. + * function which is run when the type is created (moodle administrator add the plugin) */ public static function plugin_init(){ - } /**