function spamicide_menu in Spamicide 6
Same name and namespace in other branches
- 5 spamicide.module \spamicide_menu()
- 7 spamicide.module \spamicide_menu()
Implementation of hook_menu().
File
- ./
spamicide.module, line 23 - This module provides yet another tool to eliminate spam.
Code
function spamicide_menu() {
$items = array();
$items['admin/settings/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',
),
'type' => MENU_NORMAL_ITEM,
);
// form for adding/editing spamicide form
$items['admin/settings/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',
5,
TRUE,
),
'access arguments' => array(
'administer spamicide',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/spamicide/spamicide_form/delete/%'] = array(
'title' => 'Delete',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spamicide_delete_confirm',
5,
TRUE,
),
'access arguments' => array(
'administer spamicide',
),
'type' => MENU_CALLBACK,
);
return $items;
}