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
// * Integration - Validate a user via integration config.
19
21
// * JavaScript - Validate a user via JavaScript on the client side.
20
22
// * Code - Specify the configuration in code without using the Trigger/Action paradigm.
21
-
$form['config']['queueit_mode'] = array(
23
+
$form['config']['queueit_mode'] = [
22
24
'#type' => 'radios',
23
-
'#title' => t('Queue-it mode.'),
25
+
'#title' => t('Queue-it mode'),
24
26
'#options' => [
25
27
'integration' => 'Integration config',
26
28
'js' => 'JavaScript',
27
29
'code' => 'Configuration in code',
28
30
],
29
31
'#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).'),
'#description' => t("Settings related to <i>Integration config</i> mode as defined in Queue-it configuration store and controlled via the Queue-it Go platform. The configuration file consists of Triggers and Actions to determine which pages to protect and which queues to use."),
. t("<br>Use <i>Refresh</i> button to fetch the latest integration config from Queue-it Go platform. The config is cached with a TTL of 5 mins, after which the new config is loaded on any page load. Clicking the <i>Refresh</i> button more than once every 5 seconds will not trigger another fetch."),
65
+
];
38
66
/* Configuration using code */
39
-
$form['event_config'] = array(
67
+
$form['event_config'] = [
40
68
'#title' => 'Event config',
41
69
'#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.'),
42
70
'#type' => 'fieldset',
@@ -47,100 +75,100 @@ function queueit_settings_form($form, &$form_state) {
'#description' => t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. It is recommended to exclude resources and AJAX calls."),
101
-
);
102
-
$form['validate']['queueit_ignore_post'] = array(
129
+
];
130
+
$form['validate']['queueit_ignore_post'] = [
103
131
'#type' => 'checkbox',
104
132
'#title' => t('Ignore queue validation for the POST requests.'),
105
133
'#description' => t('Ignores the KnownUser validation for pages sent via HTTP POST request.'),
'#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