]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add version info to SamplePlugin
authorEvan Prodromou <evan@status.net>
Fri, 8 Jan 2010 01:37:44 +0000 (17:37 -0800)
committerEvan Prodromou <evan@status.net>
Fri, 8 Jan 2010 01:37:44 +0000 (17:37 -0800)
plugins/Sample/SamplePlugin.php

index 7ea956af6ab9cae499f9424c0b0e81bc81da2b9c..913741226b4302cd2c63bc09f439659fe9a89d68 100644 (file)
@@ -266,5 +266,16 @@ class SamplePlugin extends Plugin
                           _m('Hello'), _m('A warm greeting'), false, 'nav_hello');
         return true;
     }
+
+    function onPluginVersion(&$versions)
+    {
+        $versions[] = array('name' => 'Sample',
+                            'version' => STATUSNET_VERSION,
+                            'author' => 'Brion Vibber, Evan Prodromou',
+                            'homepage' => 'http://status.net/wiki/Plugin:Sample',
+                            'rawdescription' =>
+                            _m('A sample plugin to show basics of development for new hackers.'));
+        return true;
+    }
 }