* add onPluginVersion()

* remove superfluous whitespace.
This commit is contained in:
Siebrand Mazeland 2010-09-20 19:36:09 +02:00
parent c932c0fdc1
commit 667cfcc84a

View File

@ -51,7 +51,6 @@ if (!defined('STATUSNET')) {
*
* @seeAlso Location
*/
class BlankAdPlugin extends UAPPlugin
{
/**
@ -61,7 +60,6 @@ class BlankAdPlugin extends UAPPlugin
*
* @return void
*/
protected function showMediumRectangle($action)
{
$action->element('img',
@ -78,7 +76,6 @@ class BlankAdPlugin extends UAPPlugin
*
* @return void
*/
protected function showRectangle($action)
{
$action->element('img',
@ -95,7 +92,6 @@ class BlankAdPlugin extends UAPPlugin
*
* @return void
*/
protected function showWideSkyscraper($action)
{
$action->element('img',
@ -112,7 +108,6 @@ class BlankAdPlugin extends UAPPlugin
*
* @return void
*/
protected function showLeaderboard($action)
{
$action->element('img',
@ -121,4 +116,15 @@ class BlankAdPlugin extends UAPPlugin
'src' => common_path('plugins/BlankAd/redpixel.png')),
'');
}
function onPluginVersion(&$versions)
{
$versions[] = array('name' => 'BlankAdPlugin',
'version' => STATUSNET_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:BlankAdPlugin',
'rawdescription' =>
_m('Plugin for testing ad layout'));
return true;
}
}