Skip to content
Snippets Groups Projects
Commit 5a224484 authored by totten's avatar totten
Browse files

#2728 - ReCAPTCHA - Consistently present link to settings

See also: #2728

Before
------

"ReCAPTCHA Settings" appears in "Customize Data and Screens" in the nav-menu, and it is missing in the `civicrm/admin` dashboard.

After
-----

"ReCAPTCHA Settings" appears "System Settings" for both the nav-menu and the `civicrm/admin` dashboard.
parent f6cc9461
Branches
Tags
No related merge requests found
......@@ -127,7 +127,7 @@ function recaptcha_civicrm_entityTypes(&$entityTypes) {
* Implements hook_civicrm_navigationMenu().
*/
function recaptcha_civicrm_navigationMenu(&$menu) {
_recaptcha_civix_insert_navigation_menu($menu, 'Administer/Customize Data and Screens', [
_recaptcha_civix_insert_navigation_menu($menu, 'Administer/System Settings', [
'label' => E::ts('reCAPTCHA Settings'),
'name' => 'recaptcha_settings',
'url' => 'civicrm/admin/setting/recaptcha',
......
......@@ -3,7 +3,9 @@
<item>
<path>civicrm/admin/setting/recaptcha</path>
<title>reCAPTCHA Settings</title>
<desc>Configure anti-abuse/bot-prevention service</desc>
<page_callback>CRM_Admin_Form_Generic</page_callback>
<access_arguments>administer CiviCRM</access_arguments>
<adminGroup>System Settings</adminGroup>
</item>
</menu>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment