]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Mapstraction PluginVersion
authorEvan Prodromou <evan@status.net>
Fri, 8 Jan 2010 08:38:20 +0000 (00:38 -0800)
committerEvan Prodromou <evan@status.net>
Fri, 8 Jan 2010 08:38:20 +0000 (00:38 -0800)
plugins/Blacklist/BlacklistPlugin.php
plugins/Mapstraction/MapstractionPlugin.php

index 655b0926b797d53392c41566e4f1b4f0fdcbd311..84a2cb6168e7752d2ea2489917c06ec6c927cb4a 100644 (file)
@@ -43,6 +43,8 @@ if (!defined('STATUSNET')) {
 
 class BlacklistPlugin extends Plugin
 {
+    const VERSION = STATUSNET_VERSION;
+
     public $nicknames = array();
     public $urls      = array();
 
@@ -200,4 +202,15 @@ class BlacklistPlugin extends Plugin
 
         return true;
     }
+
+    function onPluginVersion(&$versions)
+    {
+        $versions[] = array('name' => 'Blacklist',
+                            'version' => self::VERSION,
+                            'author' => 'Evan Prodromou',
+                            'homepage' => 'http://status.net/wiki/Plugin:Blacklist',
+                            'description' =>
+                            _m('Keep a blacklist of forbidden nickname and URL patterns.'));
+        return true;
+    }
 }
index 93679e56c24496a7abae456048ddd066f62d3284..868933fd432461a887c0697c1d1681a1ab6d4a6e 100644 (file)
@@ -47,6 +47,8 @@ if (!defined('STATUSNET')) {
 
 class MapstractionPlugin extends Plugin
 {
+    const VERSION = STATUSNET_VERSION;
+
     /** provider name, one of:
      'cloudmade', 'google', 'microsoft', 'openlayers', 'yahoo' */
     public $provider = 'openlayers';
@@ -192,4 +194,17 @@ class MapstractionPlugin extends Plugin
 
         $action->elementEnd('div');
     }
+
+    function onPluginVersion(&$versions)
+    {
+        $versions[] = array('name' => 'Mapstraction',
+                            'version' => self::VERSION,
+                            'author' => 'Evan Prodromou',
+                            'homepage' => 'http://status.net/wiki/Plugin:Mapstraction',
+                            'rawdescription' =>
+                            _m('Show maps of users\' and friends\' notices '.
+                               'with <a href="http://www.mapstraction.com/">Mapstraction</a> '.
+                               'JavaScript library.'));
+        return true;
+    }
 }