add version information to GoogleAnalytics

This commit is contained in:
Evan Prodromou 2010-01-07 17:51:57 -08:00
parent ca3b2d614a
commit 87c181b4e3

View File

@ -70,4 +70,16 @@ class GoogleAnalyticsPlugin extends Plugin
$action->inlineScript($js1);
$action->inlineScript($js2);
}
function onPluginVersion(&$versions)
{
$versions[] = array('name' => 'GoogleAnalytics',
'version' => STATUSNET_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:GoogleAnalytics',
'rawdescription' =>
_m('Use <a href="http://www.google.com/analytics/">Google Analytics</a>'.
' to track Web access.'));
return true;
}
}