SubMirror: switch the mirror setup tab from account settings to subscriptions/groups/invites area
This commit is contained in:
parent
aa4a8e5051
commit
d0d1257d99
@ -93,15 +93,16 @@ class SubMirrorPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Menu item for settings
|
* Menu item for personal subscriptions/groups area
|
||||||
*
|
*
|
||||||
* @param Action &$action Action being executed
|
* @param Widget $widget Widget being executed
|
||||||
*
|
*
|
||||||
* @return boolean hook return
|
* @return boolean hook return
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function onEndAccountSettingsNav(&$action)
|
function onEndSubGroupNav($widget)
|
||||||
{
|
{
|
||||||
|
$action = $widget->out;
|
||||||
$action_name = $action->trimmed('action');
|
$action_name = $action->trimmed('action');
|
||||||
|
|
||||||
$action->menuItem(common_local_url('mirrorsettings'),
|
$action->menuItem(common_local_url('mirrorsettings'),
|
||||||
|
@ -102,4 +102,10 @@ class MirrorSettingsAction extends AccountSettingsAction
|
|||||||
function handlePost()
|
function handlePost()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showLocalNav()
|
||||||
|
{
|
||||||
|
$nav = new SubGroupNav($this, common_current_user());
|
||||||
|
$nav->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user