mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:40:16 +00:00
Merge pull request #14248 from mexon/mat/moderation-tab-hook
Add addon hook for additional moderation tabs
This commit is contained in:
commit
16f5d2033d
1 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Module\Moderation;
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Session\Capability\IHandleUserSessions;
|
||||
|
@ -106,9 +107,11 @@ abstract class BaseUsers extends BaseModeration
|
|||
'accesskey' => 'd',
|
||||
],
|
||||
];
|
||||
$tabs_arr = ['tabs' => $tabs, 'selectedTab' => $selectedTab];
|
||||
Hook::callAll('moderation_users_tabs', $tabs_arr);
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
|
||||
return Renderer::replaceMacros($tpl, ['$tabs' => $tabs]);
|
||||
return Renderer::replaceMacros($tpl, ['$tabs' => $tabs_arr['tabs']]);
|
||||
}
|
||||
|
||||
protected function setupUserCallback(): \Closure
|
||||
|
|
Loading…
Reference in a new issue