forked from GNUsocial/gnu-social
add account settings menu item for OpenID
This commit is contained in:
parent
7a742a0572
commit
3245357749
@ -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')),
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user