--- visitors.module	Tue Jan 20 09:26:36 1970
+++ visitors.module	Tue Jan 20 09:26:36 1970
@@ -21,6 +21,17 @@
       return '';
   }
 }
+
+/**
+ * Implements hook_views_api().
+ */
+function visitors_views_api() {
+  return array(
+    'api' => 3,
+    'path' => drupal_get_path('module', 'visitors'),
+  );
+}
+
 
 /**
  * Implements hook_permission().
@@ -37,7 +48,7 @@
  */
 function visitors_menu() {
   $items = array();
-
+  $visitor_report_path = 'admin/';
   $items['admin/config/system/visitors'] = array(
     'title' => 'Visitors settings',
     'description' => 'Configure visitors settings.',
@@ -48,7 +59,7 @@
     'file' => 'forms/admin_settings.inc',
   );
 
-  $items['visitors'] = array(
+  $items[$visitor_report_path . 'visitors'] = array(
     'title' => 'Visitors',
     'description' => "Visitors info.",
     'position' => 'left',
@@ -58,7 +69,7 @@
     'file path' => drupal_get_path('module', 'system'),
   );
 
-  $items['visitors/countries'] = array(
+  $items[$visitor_report_path . 'visitors/countries'] = array(
     'title' => 'Countries',
     'description' => 'View pages count per country.',
     'page callback' => 'visitors_countries',
@@ -67,7 +78,7 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['visitors/countries/%'] = array(
+  $items[$visitor_report_path . 'visitors/countries/%'] = array(
     'title' => 'City',
     'description' => 'View pages count per city.',
     'page callback' => 'visitors_cities',
@@ -77,7 +88,7 @@
     'type' => MENU_CALLBACK,
   );
 
-  $items['visitors/countries/%/%'] = array(
+  $items[$visitor_report_path . 'visitors/countries/%/%'] = array(
     'title' => 'Hits',
     'description' => 'View city hits.',
     'page callback' => 'visitors_city_hits',
@@ -87,7 +98,7 @@
     'type' => MENU_CALLBACK,
   );
 
-  $items['visitors/hits'] = array(
+  $items[$visitor_report_path . 'visitors/hits'] = array(
     'title' => 'Recent hits',
     'description' => 'View pages that have recently been visited.',
     'page callback' => 'visitors_recent_hits',
@@ -96,7 +107,7 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['visitors/pages'] = array(
+  $items[$visitor_report_path . 'visitors/pages'] = array(
     'title' => 'Top pages',
     'description' => 'View pages that have been hit frequently.',
     'page callback' => 'visitors_top_pages',
@@ -105,7 +116,7 @@
     'file' => 'visitors.admin.inc',
   );
 
-  $items['visitors/monthly_history'] = array(
+  $items[$visitor_report_path . 'visitors/monthly_history'] = array(
     'title' => 'Monthly history',
     'description' => 'View pages count per month.',
     'page callback' => 'visitors_monthly_history',
@@ -114,7 +125,7 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['visitors/monthly_history/chart'] = array(
+  $items[$visitor_report_path . 'visitors/monthly_history/chart'] = array(
     'title' => 'Monthly history',
     'description' => 'View pages count per month.',
     'page callback' => 'chart_visitors_monthly_history',
@@ -123,7 +134,7 @@
     'type' => MENU_CALLBACK,
   );
 
-  $items['visitors/days_of_month'] = array(
+  $items[$visitor_report_path . 'visitors/days_of_month'] = array(
     'title' => 'Days of month',
     'description' => 'View pages count per day of month.',
     'page callback' => 'visitors_days_of_month',
@@ -132,7 +143,7 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['visitors/days_of_month/chart'] = array(
+  $items[$visitor_report_path . 'visitors/days_of_month/chart'] = array(
     'title' => 'Days of month',
     'description' => 'View pages count per day of month.',
     'page callback' => 'chart_visitors_days_of_month',
@@ -141,7 +152,7 @@
     'type' => MENU_CALLBACK,
   );
 
-  $items['visitors/days_of_week'] = array(
+  $items[$visitor_report_path . 'visitors/days_of_week'] = array(
     'title' => 'Days of week',
     'description' => 'View pages count per day of week.',
     'page callback' => 'visitors_days_of_week',
@@ -149,7 +160,7 @@
     'file' => 'visitors.admin.inc',
   );
 
-  $items['visitors/days_of_week/chart'] = array(
+  $items[$visitor_report_path . 'visitors/days_of_week/chart'] = array(
     'title' => 'Days of week',
     'description' => 'View pages count per day of week.',
     'page callback' => 'chart_visitors_days_of_week',
@@ -158,7 +169,7 @@
     'type' => MENU_CALLBACK,
   );
 
-  $items['visitors/hours'] = array(
+  $items[$visitor_report_path . 'visitors/hours'] = array(
     'title' => 'Hours',
     'description' => 'View pages count per hour.',
     'page callback' => 'visitors_hours',
@@ -167,7 +178,7 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['visitors/hours/chart'] = array(
+  $items[$visitor_report_path . 'visitors/hours/chart'] = array(
     'title' => 'Hours',
     'description' => 'View pages count per hour.',
     'page callback' => 'chart_visitors_hours',
@@ -176,7 +187,7 @@
     'type' => MENU_CALLBACK,
   );
 
-  $items['visitors/hosts'] = array(
+  $items[$visitor_report_path . 'visitors/hosts'] = array(
     'title' => 'Hosts',
     'description' => 'View pages count per host.',
     'page callback' => 'visitors_hosts',
@@ -185,7 +196,7 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['visitors/user_activity'] = array(
+  $items[$visitor_report_path . 'visitors/user_activity'] = array(
     'title' => 'User activity',
     'description' => 'View user activity report (hits, nodes, comments).',
     'page callback' => 'visitors_user_activity',
@@ -194,7 +205,7 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['visitors/referers'] = array(
+  $items[$visitor_report_path . 'visitors/referers'] = array(
     'title' => 'Referers',
     'description' => 'View referer list.',
     'page callback' => 'visitors_referer_list',
@@ -203,7 +214,7 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['visitors/hosts/%'] = array(
+  $items[$visitor_report_path . 'visitors/hosts/%'] = array(
     'title' => 'Hits',
     'description' => 'View host access log.',
     'page callback' => 'visitors_host_hits',
@@ -213,7 +224,7 @@
     'type' => MENU_CALLBACK,
   );
 
-  $items['visitors/hits/%'] = array(
+  $items[$visitor_report_path . 'visitors/hits/%'] = array(
     'title' => 'Details',
     'description' => 'View access log.',
     'page callback' => 'visitors_hit_details',
