You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: queueit.admin.inc
+76-18Lines changed: 76 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,17 @@ function queueit_settings_form($form, &$form_state) {
16
16
);
17
17
// Implementation type.
18
18
// * Integration - Validate a user via integration config.
19
+
// * JavaScript - Validate a user via JavaScript on the client side.
19
20
// * Code - Specify the configuration in code without using the Trigger/Action paradigm.
20
21
$form['config']['queueit_mode'] = array(
21
22
'#type' => 'radios',
22
23
'#title' => t('Queue-it mode.'),
23
24
'#options' => [
24
25
'integration' => 'Integration config',
26
+
'js' => 'JavaScript',
25
27
'code' => 'Configuration in code',
26
-
// 'js' => 'JavaScript', // @todo
27
28
],
28
-
'#description' => t('Select the type of Queue-it implementation.<br>Select Integration Config to load the configuration from the Go Queue-it platform.<br>Select Configuration in code if your application server is not allowed to do external GET requests (this is without using the Trigger/Action paradigm).'),
29
+
'#description' => t('Select the method used to integrate Queue-it:<br>Integration Config - used to load the configuration from the Go Queue-it platform.<br>JavaScript - protects pages by the queue on the client side.<br>Configuration in code - recommended for testing specific event or when your application server is not allowed to do external GET requests (this is without using the Trigger/Action paradigm).'),
@@ -40,9 +41,12 @@ function queueit_settings_form($form, &$form_state) {
40
41
'#description' => t('When configuration in code is selected, you can specify the following parameters without using the Trigger/Action paradigm. Useful when your application server is not allowed to do external GET requests.'),
@@ -112,25 +116,30 @@ function queueit_settings_form($form, &$form_state) {
112
116
'#title' => 'Queue-it Credentials',
113
117
'#type' => 'fieldset',
114
118
);
115
-
$form['creds']['queueit_api_key'] = array(
116
-
'#type' => 'textfield',
117
-
'#title' => t('API Key'),
118
-
'#description' => t('Specify the Api-key which can be supplied through the query string parameter. The key can be found in the GO Queue-it Platform.'),
'#description' => t('Specify the Api-key which can be supplied through the query string parameter. The key can be found in the GO Queue-it Platform.'),
0 commit comments