function spamicide_menu in Spamicide 7
Same name and namespace in other branches
- 5 spamicide.module \spamicide_menu()
- 6 spamicide.module \spamicide_menu()
Implements hook_menu().
File
- ./
spamicide.module, line 22 - This module provides yet another tool to eliminate spam.
Code
function spamicide_menu() {
$items['admin/config/people/spamicide'] = array(
'title' => 'Spamicide',
'description' => 'Administer how and where Spamicide is used.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spamicide_admin_form',
),
'access arguments' => array(
'administer spamicide',
),
);
$items['admin/config/people/spamicide/form'] = array(
'title' => 'Forms',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
'access arguments' => array(
'administer spamicide',
),
);
// form for adding spamicide form protection
$items['admin/config/people/spamicide/spamicide_form/add/%'] = array(
'title' => 'Set Spamicide form',
'description' => "Add or edit form_id's to protect with Spamicide.",
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spamicide_admin_adform_form',
6,
TRUE,
),
'access arguments' => array(
'administer spamicide',
),
'type' => MENU_CALLBACK,
);
$items['admin/config/people/spamicide/spamicide_form/delete/%'] = array(
'title' => 'Delete',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spamicide_delete_confirm',
6,
TRUE,
),
'access arguments' => array(
'administer spamicide',
),
'type' => MENU_CALLBACK,
);
return $items;
}