You are here

function cleantalk_menu in Anti Spam by CleanTalk 7.5

Same name and namespace in other branches
  1. 8 cleantalk.module \cleantalk_menu()
  2. 7 cleantalk.module \cleantalk_menu()
  3. 7.2 cleantalk.module \cleantalk_menu()
  4. 7.4 cleantalk.module \cleantalk_menu()

Implements hook_menu().

File

./cleantalk.module, line 197
Main CleanTalk integration module functions.

Code

function cleantalk_menu() {
  $items['admin/config/cleantalk'] = array(
    'title' => 'Antispam by CleanTalk',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'cleantalk_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'src/Form/CleantalkSettingsForm.php',
  );
  $items['admin/config/cleantalk/settings'] = array(
    'title' => 'Settings',
    'description' => 'Configure module settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'cleantalk_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'src/Form/CleantalkSettingsForm.php',
  );
  $items['admin/config/cleantalk/checkusers'] = array(
    'title' => 'Check users',
    'description' => 'Check existing spam users',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'cleantalk_check_users_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'src/Form/CleantalkCheckUsersForm.php',
  );
  $items['admin/config/cleantalk/checkcomments'] = array(
    'title' => 'Check comments',
    'description' => 'Check existing spam comments',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'cleantalk_check_comments_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'src/Form/CleantalkCheckCommentsForm.php',
  );
  return $items;
}