You are here

function antibot_landing_page in Antibot 7

The landing page callback.

You are brought here if you submit a protected form without JavaScript enabled.

1 string reference to 'antibot_landing_page'
antibot_menu in ./antibot.module
Implements hook_menu().

File

./antibot.pages.inc, line 14
Page callbacks and functions.

Code

function antibot_landing_page() {
  $page = array();
  $page['message'] = array(
    '#type' => 'html_tag',
    '#tag' => 'div',
    '#attributes' => array(
      'class' => array(
        'messages',
        'error',
      ),
    ),
    '#value' => t('You have reached this page because you submitted a form that required JavaScript to be enabled on your browser. This protection is in place to attempt to prevent automated submissions made on forms. Please return to the page that you came from and enable JavaScript on your browser before attempting to submit the form again.'),
  );
  return $page;
}