Added Plugin Version info to recaptcha plugin

This commit is contained in:
Eric Helgeson 2010-01-18 18:31:13 -05:00
parent d29a791fff
commit 0ddfcc5521

View 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;
}
}