function visitors_geoip_menu in Visitors 7
Same name and namespace in other branches
- 8 visitors_geoip.module \visitors_geoip_menu()
- 7.2 visitors_geoip.module \visitors_geoip_menu()
Menu callback. Prints a listing of active nodes on the site.
File
- ./
visitors_geoip.module, line 13
Code
function visitors_geoip_menu() {
$items = array();
$items['visitors/countries'] = array(
'title' => 'Countries',
'description' => 'View pages count per country.',
'page callback' => 'visitors_countries',
'access arguments' => array(
'access visitors',
),
'file' => 'visitors.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['visitors/countries/%'] = array(
'title' => 'City',
'description' => 'View pages count per city.',
'page callback' => 'visitors_cities',
'page arguments' => array(
2,
),
'access arguments' => array(
'access visitors',
),
'file' => 'visitors.admin.inc',
'type' => MENU_CALLBACK,
);
$items['visitors/countries/%/%'] = array(
'title' => 'Hits',
'description' => 'View city hits.',
'page callback' => 'visitors_city_hits',
'page arguments' => array(
2,
3,
),
'access arguments' => array(
'access visitors',
),
'file' => 'visitors.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}