From 4e2f6545ecc4f5189668c7d7606493fdd569e10e Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 31 Mar 2022 00:16:54 +0100 Subject: [PATCH] [COMPONENT][Person][PLUGIN][WebHooks] Rename person settings section from 'others' to 'api' --- components/Person/templates/person/settings.html.twig | 4 ++-- plugins/WebHooks/WebHooks.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Person/templates/person/settings.html.twig b/components/Person/templates/person/settings.html.twig index c2250cf76c..15abb021e4 100644 --- a/components/Person/templates/person/settings.html.twig +++ b/components/Person/templates/person/settings.html.twig @@ -34,8 +34,8 @@ {{ macros.settings_details_container('Notifications', 'Enable/disable notifications (Email, XMPP, Replies...)', 'notifications', tabbed_forms_notify, _context) }}
  • - {% set other_tabs = handle_event('PopulateSettingsTabs', app.request, 'others') %} - {{ macros.settings_details_container('Others', 'Other settings (plugins, etc.)', 'settings-other-details', other_tabs, _context) }} + {% set other_tabs = handle_event('PopulateSettingsTabs', app.request, 'api') %} + {{ macros.settings_details_container('API', 'API settings', 'settings-other-details', other_tabs, _context) }}
  • diff --git a/plugins/WebHooks/WebHooks.php b/plugins/WebHooks/WebHooks.php index 170ea5c735..92e26bc757 100644 --- a/plugins/WebHooks/WebHooks.php +++ b/plugins/WebHooks/WebHooks.php @@ -50,7 +50,7 @@ class WebHooks extends Plugin public function onPopulateSettingsTabs(Request $request, string $section, array &$tabs): bool { - if ($section === 'others') { + if ($section === 'api') { $tabs[] = [ 'title' => 'Web Hooks', 'desc' => 'Add hooks that run when an internal event occurs, allowing your third party resource to react',