]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - PLUGINS.txt
Handle normalized acct: URIs in ostatussub
[quix0rs-gnu-social.git] / PLUGINS.txt
index d2b7015bf590f5fe36c7464ae365516278c2fb58..44d2ea2d447b32b3f4b91cfae07f507ea380b851 100644 (file)
@@ -10,13 +10,13 @@ and has a choice of accepting or rejecting the events.
 In the simplest case, you can add a function to config.php and use the
 Event::addHandler() function to hook an event:
 
-    function AddGoogleLink($action)
-    {
-        $action->menuItem('http://www.google.com/', _('Google'), _('Search engine'));
-        return true;
-    }
+function AddMyWebsiteLink($action)
+{
+$action->menuItem('http://mywebsite.net/', _('My web site'), _('Example web link'));
+return true;
+}
 
-    Event::addHandler('EndPrimaryNav', 'AddGoogleLink');
+Event::addHandler('EndPrimaryNav', 'AddMyWebsiteLink');
 
 This adds a menu item to the end of the main navigation menu. You can
 see the list of existing events, and parameters that handlers must