SubMirror: switch the mirror setup tab from account settings to subscriptions/groups/invites area

This commit is contained in:
Brion Vibber 2011-01-18 12:34:04 -08:00
parent aa4a8e5051
commit d0d1257d99
2 changed files with 10 additions and 3 deletions

View File

@ -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
*/
function onEndAccountSettingsNav(&$action)
function onEndSubGroupNav($widget)
{
$action = $widget->out;
$action_name = $action->trimmed('action');
$action->menuItem(common_local_url('mirrorsettings'),

View File

@ -102,4 +102,10 @@ class MirrorSettingsAction extends AccountSettingsAction
function handlePost()
{
}
function showLocalNav()
{
$nav = new SubGroupNav($this, common_current_user());
$nav->show();
}
}