You are here

function spambot_menu in Spambot 7

Same name and namespace in other branches
  1. 6.3 spambot.module \spambot_menu()

Implements hook_menu().

File

./spambot.module, line 28
Main module file.

Code

function spambot_menu() {
  $items['admin/config/system/spambot'] = array(
    'title' => 'Spambot',
    'description' => 'Configure the spambot module',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'spambot_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'spambot.admin.inc',
  );
  $items['user/%user/spambot'] = array(
    'title' => 'Spam',
    'page callback' => 'spambot_user_spam',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'administer users',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'spambot.pages.inc',
  );
  return $items;
}