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' =>
|
'emailsettings' =>
|
||||||
array(_('Email'),
|
array(_('Email'),
|
||||||
_('Change email handling')),
|
_('Change email handling')),
|
||||||
'openidsettings' =>
|
|
||||||
array(_('OpenID'),
|
|
||||||
_('Add or remove OpenIDs')),
|
|
||||||
'userdesignsettings' =>
|
'userdesignsettings' =>
|
||||||
array(_('Design'),
|
array(_('Design'),
|
||||||
_('Design your profile')),
|
_('Design your profile')),
|
||||||
|
@ -87,4 +87,16 @@ class OpenIDPlugin extends Plugin
|
|||||||
|
|
||||||
return true;
|
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…
x
Reference in New Issue
Block a user