]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add onPluginVersion().
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sun, 5 Jun 2011 22:36:31 +0000 (00:36 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Sun, 5 Jun 2011 22:36:31 +0000 (00:36 +0200)
Add translator documentation.
Whitespace update.
Add FIXME for global functions.

plugins/Spotify/SpotifyPlugin.php

index e7a5a5382635c86ebd58017b36823332d6e70636..6d4e645629d2768f192a35062ab61af81b7e1c14 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * StatusNet, the distributed open-source microblogging tool
 *
+ *
  * Plugin to create pretty Spotify URLs
  *
  * PHP version 5
@@ -47,10 +47,8 @@ define('SPOTIFYPLUGIN_VERSION', '0.1');
  *
  * @see       Event
  */
-
 class SpotifyPlugin extends Plugin
 {
-
     function __construct()
     {
         parent::__construct();
@@ -74,8 +72,22 @@ class SpotifyPlugin extends Plugin
         return 'SpotifyPlugin/'.SPOTIFYPLUGIN_VERSION .
                ' StatusNet/' . STATUSNET_VERSION;
     }
+
+    function onPluginVersion(&$versions)
+    {
+        $versions[] = array('name' => 'Spotify',
+                            'version' => SPOTIFYPLUGIN_VERSION,
+                            'author' => 'Nick Holliday',
+                            'homepage' => 'http://status.net/wiki/Plugin:Spotify',
+                            'rawdescription' =>
+                            // TRANS: Plugin description.
+                            _m('Create pretty <a href="http://www.spotify.com">Spotify</a> URLs.'));
+
+        return true;
+    }
 }
 
+// @todo FIXME: This probably should not be global functions.
 function doSpotifyLookup($uri, $isArtist)
 {
     $request = HTTPClient::start();