add versions for url-shortener plugins

This commit is contained in:
Evan Prodromou
2010-01-08 00:20:38 -08:00
parent 505cd382f3
commit 054aaa40bf
5 changed files with 66 additions and 3 deletions

View File

@@ -57,4 +57,16 @@ class TightUrlPlugin extends UrlShortenerPlugin
return strval($xml['href']);
}
}
function onPluginVersion(&$versions)
{
$versions[] = array('name' => sprintf('TightUrl (%s)', $this->shortenerName),
'version' => STATUSNET_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:TightUrl',
'rawdescription' =>
sprintf(_m('Uses <a href="http://%1$s/">%1$s</a> URL-shortener service.'),
$this->shortenerName));
return true;
}
}