]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SlicedFavorites/SlicedFavoritesPlugin.php
Merge branch '0.9.x' into testing
[quix0rs-gnu-social.git] / plugins / SlicedFavorites / SlicedFavoritesPlugin.php
index 0a1a591efb88859941821de3f29536db5fa065c8..d2407484da57839c8743cf4735d997ba7dcff474 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 /**
- * @package YammerImportPlugin
+ * @package SlicedFavoritesPlugin
  * @maintainer Brion Vibber <brion@status.net>
  */
 
@@ -33,13 +33,13 @@ class SlicedFavoritesPlugin extends Plugin
      *     'slices' => array(
      *       // show only pop's notices on /favorited
      *       'default' => array('include' => array('pop')),
-     * 
+     *
      *       // show only son's notices on /favorited/blog
      *       'blog' => array('include' => array('son')),
-     * 
+     *
      *       // show all favorited notices except pop's and son's on /favorited/submitted
      *       'submitted' => array('exclude' => array('pop', 'son')),
-     * 
+     *
      *       // show all favorited notices on /favorited/everybody
      *       'everybody' => array(),
      *     )
@@ -106,4 +106,28 @@ class SlicedFavoritesPlugin extends Plugin
         }
         return true;
     }
+
+    /**
+     * Provide plugin version information.
+     *
+     * This data is used when showing the version page.
+     *
+     * @param array &$versions array of version data arrays; see EVENTS.txt
+     *
+     * @return boolean hook value
+     */
+    function onPluginVersion(&$versions)
+    {
+        $url = 'http://status.net/wiki/Plugin:SlicedFavorites';
+
+        $versions[] = array('name' => 'SlicedFavorites',
+            'version' => STATUSNET_VERSION,
+            'author' => 'Brion Vibber',
+            'homepage' => $url,
+            'rawdescription' =>
+            // TRANS: Plugin description.
+            _m('Shows timelines of popular notices for defined subsets of users.'));
+
+        return true;
+    }
 }