You are here

function antibot_menu in Antibot 7

Implements hook_menu().

File

./antibot.module, line 11
Attempt to prevent robotic form submissions and spam.

Code

function antibot_menu() {
  $items = array();
  $items['antibot'] = array(
    'title' => 'Submission failed',
    'page callback' => 'antibot_landing_page',
    'access callback' => TRUE,
    'file' => 'antibot.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/system/antibot'] = array(
    'title' => 'Antibot',
    'description' => 'Configure Antibot form protection.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'antibot_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'antibot.admin.inc',
  );
  return $items;
}