Commit | Line | Data |
---|---|---|
dbf9e1e6 MW |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
4 | | Copyright CiviCRM LLC. All rights reserved. | | |
5 | | | | |
6 | | This work is published under the GNU AGPLv3 license with some | | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
9 | +--------------------------------------------------------------------+ | |
10 | */ | |
11 | ||
12 | use CRM_Recaptcha_ExtensionUtil as E; | |
13 | ||
14 | /** | |
15 | * Settings metadata file | |
16 | */ | |
17 | return [ | |
18 | 'recaptchaPublicKey' => [ | |
19 | 'group_name' => 'CiviCRM Preferences', | |
20 | 'group' => 'core', | |
21 | 'name' => 'recaptchaPublicKey', | |
22 | 'type' => 'String', | |
23 | 'quick_form_type' => 'Element', | |
24 | 'html_attributes' => [ | |
25 | 'size' => 64, | |
26 | 'maxlength' => 64, | |
27 | ], | |
28 | 'html_type' => 'text', | |
29 | 'default' => NULL, | |
30 | 'add' => '4.3', | |
31 | 'title' => E::ts('reCAPTCHA Site Key'), | |
32 | 'is_domain' => 1, | |
33 | 'is_contact' => 0, | |
34 | 'description' => NULL, | |
35 | 'help_text' => NULL, | |
36 | 'settings_pages' => [ | |
37 | 'recaptcha' => [ | |
38 | 'weight' => 10, | |
39 | ], | |
40 | ], | |
41 | ], | |
42 | 'recaptchaPrivateKey' => [ | |
43 | 'group_name' => 'CiviCRM Preferences', | |
44 | 'group' => 'core', | |
45 | 'name' => 'recaptchaPrivateKey', | |
46 | 'type' => 'String', | |
47 | 'quick_form_type' => 'Element', | |
48 | 'html_attributes' => [ | |
49 | 'size' => 64, | |
50 | 'maxlength' => 64, | |
51 | ], | |
52 | 'html_type' => 'text', | |
53 | 'default' => NULL, | |
54 | 'add' => '4.3', | |
55 | 'title' => E::ts('reCAPTCHA Secret Key'), | |
56 | 'is_domain' => 1, | |
57 | 'is_contact' => 0, | |
58 | 'description' => NULL, | |
59 | 'help_text' => NULL, | |
60 | 'settings_pages' => [ | |
61 | 'recaptcha' => [ | |
62 | 'weight' => 10, | |
63 | ], | |
64 | ], | |
65 | ], | |
66 | 'forceRecaptcha' => [ | |
67 | 'add' => '4.7', | |
68 | 'help_text' => NULL, | |
69 | 'is_domain' => 1, | |
70 | 'is_contact' => 0, | |
71 | 'group_name' => 'CiviCRM Preferences', | |
72 | 'group' => 'core', | |
73 | 'name' => 'forceRecaptcha', | |
74 | 'type' => 'Boolean', | |
75 | 'quick_form_type' => 'YesNo', | |
76 | 'html_type' => '', | |
77 | 'default' => '0', | |
78 | 'title' => E::ts('Force reCAPTCHA on Contribution pages'), | |
79 | 'description' => E::ts('If enabled, reCAPTCHA will show on all contribution pages.'), | |
80 | 'settings_pages' => [ | |
81 | 'recaptcha' => [ | |
82 | 'weight' => 10, | |
83 | ], | |
84 | ], | |
85 | ], | |
86 | 'recaptchaOptions' => [ | |
87 | 'group_name' => 'CiviCRM Preferences', | |
88 | 'group' => 'core', | |
89 | 'name' => 'recaptchaOptions', | |
90 | 'type' => 'String', | |
91 | 'quick_form_type' => 'Element', | |
92 | 'html_attributes' => [ | |
93 | 'size' => 64, | |
94 | 'maxlength' => 64, | |
95 | ], | |
96 | 'html_type' => 'text', | |
97 | 'default' => NULL, | |
98 | 'add' => '4.3', | |
99 | 'title' => E::ts('reCAPTCHA Options'), | |
100 | 'is_domain' => 1, | |
101 | 'is_contact' => 0, | |
102 | 'description' => E::ts('You can specify the reCAPTCHA theme options as comma separated data.(eg: theme:\'blackglass\', lang : \'fr\' ). Check the available options at <a href="https://developers.google.com/recaptcha/docs/display#config">Customizing the Look and Feel of reCAPTCHA</a>.'), | |
103 | 'help_text' => NULL, | |
104 | 'settings_pages' => [ | |
105 | 'recaptcha' => [ | |
106 | 'weight' => 10, | |
107 | ], | |
108 | ], | |
109 | ], | |
110 | ]; |