function spam_menu in Spam 6
Same name and namespace in other branches
- 5.3 spam.module \spam_menu()
- 5 spam.module \spam_menu()
Drupal _menu() hook.
File
- ./
spam.module, line 449 - Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.
Code
function spam_menu() {
$items = spam_invoke_api('menu');
$items['admin/content/spam'] = array(
'title' => 'Spam',
'page callback' => 'spam_admin_list',
'access arguments' => array(
'administer spam',
),
'description' => 'Manage spam on your website.',
);
$items['admin/content/spam/list'] = array(
'title' => 'list',
'type' => MENU_DEFAULT_LOCAL_TASK,
'page callback' => 'spam_admin_list',
'access arguments' => array(
'administer spam',
),
);
$items['admin/content/spam/feedback'] = array(
'title' => 'feedback',
'type' => MENU_LOCAL_TASK,
'page callback' => 'spam_admin_list_feedback',
'access arguments' => array(
'administer spam',
),
'weight' => 2,
);
$items['admin/settings/spam'] = array(
'title' => 'Spam',
'page callback' => 'spam_admin_settings',
'access arguments' => array(
'administer spam',
),
'description' => 'Configure the spam module.',
);
$items['admin/settings/spam/general'] = array(
'title' => 'General',
'type' => MENU_DEFAULT_LOCAL_TASK,
'access arguments' => array(
'administer spam',
),
'weight' => -4,
);
$items['admin/settings/spam/filters'] = array(
'title' => 'Filters',
'page callback' => 'spam_admin_filter_overview',
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer spam',
),
'weight' => -2,
);
$items['admin/settings/spam/filters/overview'] = array(
'title' => 'Overview',
'weight' => -2,
'type' => MENU_DEFAULT_LOCAL_TASK,
'access arguments' => array(
'administer spam',
),
);
$items['admin/reports/spam'] = array(
'title' => 'Spam logs',
'access arguments' => array(
'administer spam',
),
'page callback' => 'spam_logs_overview',
'description' => 'Detect and manage spam posts.',
);
$items['admin/reports/spam/logs'] = array(
'title' => 'Logs',
'access arguments' => array(
'administer spam',
),
'page callback' => 'spam_logs_overview',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/reports/spam/statistics'] = array(
'title' => 'Statistics',
'access arguments' => array(
'administer spam',
),
'page callback' => 'spam_logs_statistics',
'type' => MENU_LOCAL_TASK,
'weight' => -7,
);
$items['spam/denied'] = array(
'page callback' => 'spam_denied_page',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['spam/denied/error/%spam_hash/%'] = array(
'title' => 'Report legitimate content',
'load arguments' => array(
4,
),
'page callback' => 'spam_denied_in_error_page',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['spam/%spam_mark/%/spam'] = array(
'page callback' => 'spam_mark_as_spam_callback',
'page arguments' => array(
1,
2,
array(
'redirect' => TRUE,
),
),
'load arguments' => array(
2,
3,
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer spam',
),
);
$items['spam/%spam_mark/%/not_spam'] = array(
'page callback' => 'spam_mark_as_not_spam_callback',
'page arguments' => array(
1,
2,
array(
'redirect' => TRUE,
),
),
'load arguments' => array(
2,
3,
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer spam',
),
);
$items["admin/reports/spam/%spam_number/detail"] = array(
'access arguments' => array(
'administer spam',
),
'page callback' => 'spam_logs_entry',
'page arguments' => array(
3,
),
'type' => MENU_CALLBACK,
);
$items["admin/reports/spam/%spam_number/trace"] = array(
'access arguments' => array(
'administer spam',
),
'page callback' => 'spam_logs_trace',
'page arguments' => array(
3,
),
'type' => MENU_CALLBACK,
);
$items["admin/content/spam/feedback/%spam_number"] = array(
'title' => 'View feedback',
'type' => MENU_CALLBACK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spam_admin_feedback_form',
4,
),
'access arguments' => array(
'administer spam',
),
'weight' => 2,
);
return $items;
}