Implements hook_menu().
function contact_menu() {
$items['admin/structure/contact'] = array(
'title' => 'Contact form categories',
'description' => 'Create a system contact form and set up categories for the form to use.',
'route_name' => 'contact_category_list',
);
$items['admin/structure/contact/add'] = array(
'title' => 'Add category',
'route_name' => 'contact_category_add',
'type' => MENU_LOCAL_ACTION,
'weight' => 1,
);
$items['admin/structure/contact/manage/%contact_category'] = array(
'title' => 'Edit contact category',
'route_name' => 'contact_category_edit',
);
$items['admin/structure/contact/manage/%contact_category/edit'] = array(
'title' => 'Edit',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/structure/contact/manage/%contact_category/delete'] = array(
'title' => 'Delete',
'route_name' => 'contact_category_delete',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['contact'] = array(
'title' => 'Contact',
'page callback' => 'contact_site_page',
'access arguments' => array(
'access site-wide contact form',
),
'menu_name' => 'footer',
'type' => MENU_SUGGESTED_ITEM,
'file' => 'contact.pages.inc',
);
$items['contact/%contact_category'] = array(
'title' => 'Contact category form',
'title callback' => 'entity_page_label',
'title arguments' => array(
1,
),
'page callback' => 'contact_site_page',
'page arguments' => array(
1,
),
'access arguments' => array(
'access site-wide contact form',
),
'type' => MENU_VISIBLE_IN_BREADCRUMB,
'file' => 'contact.pages.inc',
);
$items['user/%user/contact'] = array(
'title' => 'Contact',
'page callback' => 'contact_personal_page',
'page arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'access callback' => '_contact_personal_tab_access',
'access arguments' => array(
1,
),
'weight' => 2,
'file' => 'contact.pages.inc',
);
return $items;
}