function contact_menu in Drupal 6
Same name and namespace in other branches
- 4 modules/contact.module \contact_menu()
- 5 modules/contact/contact.module \contact_menu()
- 7 modules/contact/contact.module \contact_menu()
Implementation of hook_menu().
File
- modules/
contact/ contact.module, line 43 - Enables the use of personal and site-wide contact forms.
Code
function contact_menu() {
$items['admin/build/contact'] = array(
'title' => 'Contact form',
'description' => 'Create a system contact form and set up categories for the form to use.',
'page callback' => 'contact_admin_categories',
'access arguments' => array(
'administer site-wide contact form',
),
'file' => 'contact.admin.inc',
);
$items['admin/build/contact/list'] = array(
'title' => 'List',
'page callback' => 'contact_admin_categories',
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'contact.admin.inc',
);
$items['admin/build/contact/add'] = array(
'title' => 'Add category',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'contact_admin_edit',
3,
),
'access arguments' => array(
'administer site-wide contact form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'file' => 'contact.admin.inc',
);
$items['admin/build/contact/edit/%contact'] = array(
'title' => 'Edit contact category',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'contact_admin_edit',
3,
4,
),
'access arguments' => array(
'administer site-wide contact form',
),
'type' => MENU_CALLBACK,
'file' => 'contact.admin.inc',
);
$items['admin/build/contact/delete/%contact'] = array(
'title' => 'Delete contact',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'contact_admin_delete',
4,
),
'access arguments' => array(
'administer site-wide contact form',
),
'type' => MENU_CALLBACK,
'file' => 'contact.admin.inc',
);
$items['admin/build/contact/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'contact_admin_settings',
),
'access arguments' => array(
'administer site-wide contact form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'file' => 'contact.admin.inc',
);
$items['contact'] = array(
'title' => 'Contact',
'page callback' => 'contact_site_page',
'access arguments' => array(
'access site-wide contact form',
),
'type' => MENU_SUGGESTED_ITEM,
'file' => 'contact.pages.inc',
);
$items['user/%user/contact'] = array(
'title' => 'Contact',
'page callback' => 'contact_user_page',
'page arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'access callback' => '_contact_user_tab_access',
'access arguments' => array(
1,
),
'weight' => 2,
'file' => 'contact.pages.inc',
);
return $items;
}