From: Tim Otten Date: Sat, 23 Sep 2023 08:19:45 +0000 (-0700) Subject: recaptcha - Switch to setting-admin@1 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e8da17a4d3ab5858dbee318961b4b370c18917eb;p=civicrm-core.git recaptcha - Switch to setting-admin@1 --- diff --git a/ext/recaptcha/info.xml b/ext/recaptcha/info.xml index ba2cc58ea3..7d13c333f3 100644 --- a/ext/recaptcha/info.xml +++ b/ext/recaptcha/info.xml @@ -26,7 +26,7 @@ - menu-xml@1.0.0 + setting-admin@1.0.0 setting-php@1.0.0 ang-php@1.0.0 scan-classes@1.0.0 diff --git a/ext/recaptcha/recaptcha.php b/ext/recaptcha/recaptcha.php index e959cfb329..49e8e1c7b5 100644 --- a/ext/recaptcha/recaptcha.php +++ b/ext/recaptcha/recaptcha.php @@ -32,21 +32,6 @@ function recaptcha_civicrm_enable() { _recaptcha_civix_civicrm_enable(); } -/** - * Implements hook_civicrm_navigationMenu(). - */ -function recaptcha_civicrm_navigationMenu(&$menu) { - _recaptcha_civix_insert_navigation_menu($menu, 'Administer/System Settings', [ - 'label' => E::ts('reCAPTCHA Settings'), - 'name' => 'recaptcha_settings', - 'url' => 'civicrm/admin/setting/recaptcha', - 'permission' => 'administer CiviCRM', - 'operator' => 'OR', - 'separator' => 0, - ]); - _recaptcha_civix_navigationMenu($menu); -} - /** * Intercept form functions */ diff --git a/ext/recaptcha/xml/Menu/recaptcha.xml b/ext/recaptcha/xml/Menu/recaptcha.xml deleted file mode 100644 index 558cefcf2c..0000000000 --- a/ext/recaptcha/xml/Menu/recaptcha.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - civicrm/admin/setting/recaptcha - reCAPTCHA Settings - Configure anti-abuse/bot-prevention service - CRM_Admin_Form_Generic - administer CiviCRM - System Settings - -