kopia lustrzana https://github.com/friendica/friendica
Add addon hook for additional moderation tabs
rodzic
3aedf53765
commit
8c60ea4640
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue