add account settings menu item for OpenID

This commit is contained in:
Evan Prodromou 2009-08-04 07:22:56 -04:00
parent 7a742a0572
commit 3245357749
2 changed files with 12 additions and 3 deletions

View 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')),

View 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;
}
}