function spam_filter_custom_menu in Spam 6
Drupal _menu() hook.
File
- filters/
spam_filter_custom/ spam_filter_custom.module, line 62 - Custom spam filter module Copyright(c) 2007-2009 Jeremy Andrews <jeremy@tag1consulting.com>.
Code
function spam_filter_custom_menu() {
$items = array();
$items['admin/settings/spam/filters/custom'] = array(
'title' => 'Custom',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spam_filter_custom_admin_settings',
),
'access arguments' => array(
'administer spam',
),
'description' => 'Configure the custom spam filter module.',
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/spam/filters/custom/list'] = array(
'title' => 'List',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spam_filter_custom_admin_settings',
),
'access arguments' => array(
'administer spam',
),
'description' => 'Configure the custom spam filter module.',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/spam/filters/custom/create'] = array(
'title' => 'Create',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spam_filter_custom_admin_filter',
),
'access arguments' => array(
'administer spam',
),
'description' => 'Create a custom spam filter.',
'type' => MENU_LOCAL_TASK,
);
$items["admin/settings/spam/filters/custom/%/edit"] = array(
'title' => 'Create',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spam_filter_custom_admin_filter',
5,
),
'access arguments' => array(
'administer spam',
),
'description' => 'Edit a custom spam filter.',
'type' => MENU_LOCAL_TASK,
);
return $items;
}