]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add version information to Geonames plugin
authorEvan Prodromou <evan@status.net>
Fri, 8 Jan 2010 01:27:01 +0000 (17:27 -0800)
committerEvan Prodromou <evan@status.net>
Fri, 8 Jan 2010 01:27:01 +0000 (17:27 -0800)
plugins/GeonamesPlugin.php

index 805166eaae0660c3c864eeea27026a6fe842feda..52cc9c97f94b48a52c7dcdaae09a3e0eb97b371c 100644 (file)
@@ -426,4 +426,16 @@ class GeonamesPlugin extends Plugin
 
         return $document->geoname;
     }
+
+    function onPluginVersion(&$versions)
+    {
+        $versions[] = array('name' => 'Geonames',
+                            'version' => STATUSNET_VERSION,
+                            'author' => 'Evan Prodromou',
+                            'homepage' => 'http://status.net/wiki/Plugin:Geonames',
+                            'rawdescription' =>
+                            _m('Uses <a href="http://geonames.org/">Geonames</a> service to get human-readable '.
+                               'names for locations based on user-provided lat/long pairs.'));
+        return true;
+    }
 }