Loading antibot.module +1 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ function antibot_form_validation($form, FormStateInterface $form_state) { $input = $form_state->getUserInput(); // Extract the submitted key. $submitted_key = isset($input['antibot_key']) ? $input['antibot_key'] : NULL; $submitted_key = $input['antibot_key'] ?? NULL; // Views exposed forms will initially load and submit without the key. if (($form['#form_id'] == 'views_exposed_form') && ($submitted_key === NULL)) { Loading js/antibot.js +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ Drupal.behaviors.antibot = { attach: function (context) { // Assume the user is not human, despite JS being enabled. drupalSettings.antibot.human = false; drupalSettings.antibot.human = FALSE; // Wait for a mouse to move, indicating they are human. document.body.addEventListener('mousemove', function () { Loading Loading @@ -64,7 +64,7 @@ }); } // Mark this user as being human. drupalSettings.antibot.human = true; drupalSettings.antibot.human = TRUE; } }; })(Drupal, drupalSettings); src/Controller/AntibotPage.php +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace Drupal\antibot\Controller; use Drupal\Core\Controller\ControllerBase; /** * Class AntibotPage. * Implement Class AntibotPage. * * @package Drupal\antibot\Controller */ Loading src/Form/AntibotSettings.php +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; /** * Class AntibotSettings. * Implement Class AntibotSettings. * * @package Drupal\antibot\Form */ Loading Loading
antibot.module +1 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ function antibot_form_validation($form, FormStateInterface $form_state) { $input = $form_state->getUserInput(); // Extract the submitted key. $submitted_key = isset($input['antibot_key']) ? $input['antibot_key'] : NULL; $submitted_key = $input['antibot_key'] ?? NULL; // Views exposed forms will initially load and submit without the key. if (($form['#form_id'] == 'views_exposed_form') && ($submitted_key === NULL)) { Loading
js/antibot.js +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ Drupal.behaviors.antibot = { attach: function (context) { // Assume the user is not human, despite JS being enabled. drupalSettings.antibot.human = false; drupalSettings.antibot.human = FALSE; // Wait for a mouse to move, indicating they are human. document.body.addEventListener('mousemove', function () { Loading Loading @@ -64,7 +64,7 @@ }); } // Mark this user as being human. drupalSettings.antibot.human = true; drupalSettings.antibot.human = TRUE; } }; })(Drupal, drupalSettings);
src/Controller/AntibotPage.php +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace Drupal\antibot\Controller; use Drupal\Core\Controller\ControllerBase; /** * Class AntibotPage. * Implement Class AntibotPage. * * @package Drupal\antibot\Controller */ Loading
src/Form/AntibotSettings.php +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; /** * Class AntibotSettings. * Implement Class AntibotSettings. * * @package Drupal\antibot\Form */ Loading