Mapstraction PluginVersion

This commit is contained in:
Evan Prodromou 2010-01-08 00:38:20 -08:00
parent c57fe7fbf5
commit 4f62d685d0
2 changed files with 28 additions and 0 deletions

View File

@ -43,6 +43,8 @@ if (!defined('STATUSNET')) {
class BlacklistPlugin extends Plugin class BlacklistPlugin extends Plugin
{ {
const VERSION = STATUSNET_VERSION;
public $nicknames = array(); public $nicknames = array();
public $urls = array(); public $urls = array();
@ -200,4 +202,15 @@ class BlacklistPlugin extends Plugin
return true; 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;
}
} }

View File

@ -47,6 +47,8 @@ if (!defined('STATUSNET')) {
class MapstractionPlugin extends Plugin class MapstractionPlugin extends Plugin
{ {
const VERSION = STATUSNET_VERSION;
/** provider name, one of: /** provider name, one of:
'cloudmade', 'google', 'microsoft', 'openlayers', 'yahoo' */ 'cloudmade', 'google', 'microsoft', 'openlayers', 'yahoo' */
public $provider = 'openlayers'; public $provider = 'openlayers';
@ -192,4 +194,17 @@ class MapstractionPlugin extends Plugin
$action->elementEnd('div'); $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;
}
} }