Implements hook_menu().

File

./spambot.module, line 28

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;
}