]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added Plugin Version info to recaptcha plugin
authorEric Helgeson <erichelgeson@gmail.com>
Mon, 18 Jan 2010 23:31:13 +0000 (18:31 -0500)
committerEric Helgeson <erichelgeson@gmail.com>
Mon, 18 Jan 2010 23:33:09 +0000 (18:33 -0500)
plugins/Recaptcha/RecaptchaPlugin.php

index 3665214f85710c603f811763c78e08a7e7afe5e1..c585da43c4eceefbee2db7039c1babc36480d971 100644 (file)
@@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
-define('RECAPTCHA', '0.2');
-
 require_once(INSTALLDIR.'/plugins/Recaptcha/recaptchalib.php');
 
 class RecaptchaPlugin extends Plugin
@@ -88,4 +86,16 @@ class RecaptchaPlugin extends Plugin
             return false;
         }
     }
+
+    function onPluginVersion(&$versions)
+    {
+        $versions[] = array('name' => 'Recaptcha',
+                            'version' => STATUSNET_VERSION,
+                            'author' => 'Eric Helgeson',
+                            'homepage' => 'http://status.net/wiki/Plugin:Recaptcha',
+                            'rawdescription' =>
+                            _m('Uses <a href="http://recaptcha.org/">Recaptcha</a> service to add a  '.
+                               'captcha to the registration page.'));
+        return true;
+    }
 }