diff options
author | Evan Prodromou <evan@status.net> | 2010-01-08 00:20:38 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-08 00:20:38 -0800 |
commit | 054aaa40bf89fd6726f16fb6dcfe6dfab03ef45c (patch) | |
tree | 065f6ca6c628912233ca327cf92652525155cc9c /plugins/BitlyUrl | |
parent | 505cd382f3d0d37f3d9581a907877e644b5118fd (diff) |
add versions for url-shortener plugins
Diffstat (limited to 'plugins/BitlyUrl')
-rw-r--r-- | plugins/BitlyUrl/BitlyUrlPlugin.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/BitlyUrl/BitlyUrlPlugin.php b/plugins/BitlyUrl/BitlyUrlPlugin.php index 65d0f70e6..f7f28b4d6 100644 --- a/plugins/BitlyUrl/BitlyUrlPlugin.php +++ b/plugins/BitlyUrl/BitlyUrlPlugin.php @@ -49,6 +49,18 @@ class BitlyUrlPlugin extends UrlShortenerPlugin if(!$response) return; return current(json_decode($response)->results)->hashUrl; } -} + function onPluginVersion(&$versions) + { + $versions[] = array('name' => sprintf('BitlyUrl (%s)', $this->shortenerName), + 'version' => STATUSNET_VERSION, + 'author' => 'Craig Andrews', + 'homepage' => 'http://status.net/wiki/Plugin:BitlyUrl', + 'rawdescription' => + sprintf(_m('Uses <a href="http://%1$s/">%1$s</a> URL-shortener service.'), + $this->shortenerName)); + + return true; + } +} |