function locationmap_menu in Location Map 7
Same name and namespace in other branches
- 8.2 locationmap.module \locationmap_menu()
- 7.2 locationmap.module \locationmap_menu()
Implements hook_menu().
File
- ./
locationmap.module, line 20
Code
function locationmap_menu() {
$items = array();
$items['admin/config/locationmap'] = array(
'title' => 'Google Maps location',
'description' => 'Configure Location Map.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'locationmap_admin_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer locationmap',
),
'type' => MENU_NORMAL_ITEM,
);
$items['locationmap'] = array(
'title' => 'Our Location',
'access callback' => TRUE,
'page callback' => 'locationmap_page',
'type' => MENU_SUGGESTED_ITEM,
);
$items['locationmap/view'] = array(
'title' => 'View',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['locationmap/edit'] = array(
'title' => 'Edit',
'description' => 'Configure Location Map.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'locationmap_admin_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer locationmap',
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}