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