summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-04 07:22:56 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-04 13:01:23 -0400
commit3245357749d30f655ce10e8f71737680a61f59db (patch)
treecb371b2b4f41fe07378c6fa8f9a23e2ee37c41dd
parent7a742a0572a3f0aa529785f4f7eab320a2dd099d (diff)
add account settings menu item for OpenID
-rw-r--r--lib/accountsettingsaction.php3
-rw-r--r--plugins/OpenID/OpenIDPlugin.php12
2 files changed, 12 insertions, 3 deletions
diff --git a/lib/accountsettingsaction.php b/lib/accountsettingsaction.php
index 9814c48ab..9a7c69124 100644
--- a/lib/accountsettingsaction.php
+++ b/lib/accountsettingsaction.php
@@ -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')),
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php
index b70b1da19..f76fe1e3c 100644
--- a/plugins/OpenID/OpenIDPlugin.php
+++ b/plugins/OpenID/OpenIDPlugin.php
@@ -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