You are here

function visitors_geoip_menu in Visitors 7.2

Same name and namespace in other branches
  1. 8 visitors_geoip.module \visitors_geoip_menu()
  2. 7 visitors_geoip.module \visitors_geoip_menu()

Menu callback. Prints a listing of active nodes on the site.

File

./visitors_geoip.module, line 24

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 country',
    ),
    '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 city',
    ),
    '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 city hits',
    ),
    'file' => 'visitors.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}