]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add account settings menu item for OpenID
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 4 Aug 2009 11:22:56 +0000 (07:22 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 4 Aug 2009 17:01:23 +0000 (13:01 -0400)
lib/accountsettingsaction.php
plugins/OpenID/OpenIDPlugin.php

index 9814c48ab7c72c47b230b3df03057774b71849a8..9a7c69124d4ad8928139144ad956e384f029c863 100644 (file)
@@ -116,9 +116,6 @@ class AccountSettingsNav extends Widget
                     'emailsettings' =>
                     array(_('Email'),
                           _('Change email handling')),
-                    'openidsettings' =>
-                    array(_('OpenID'),
-                          _('Add or remove OpenIDs')),
                     'userdesignsettings' =>
                     array(_('Design'),
                           _('Design your profile')),
index b70b1da190c156dad98107d7b5f3fff54d061178..f76fe1e3c01b65b9db8104107d95724ae1aecf60 100644 (file)
@@ -87,4 +87,16 @@ class OpenIDPlugin extends Plugin
 
         return true;
     }
+
+    function onEndAccountSettingsNav(&$action)
+    {
+        $action_name = $action->trimmed('action');
+
+        $action->menuItem(common_local_url('openidsettings'),
+                          _('OpenID'),
+                          _('Add or remove OpenIDs'),
+                          $action_name === 'openidsettings');
+
+        return true;
+    }
 }
\ No newline at end of file