Index: archive/station_archive.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/station/archive/station_archive.info,v
retrieving revision 1.4
diff -u -p -r1.4 station_archive.info
--- archive/station_archive.info	10 Aug 2007 17:13:15 -0000	1.4
+++ archive/station_archive.info	19 Apr 2009 20:57:16 -0000
@@ -1,5 +1,15 @@
 ; $Id: station_archive.info,v 1.4 2007/08/10 17:13:15 drewish Exp $
 name = Station Archive
 description = Provides an archive of the station's webstream.
-dependencies = audio station taxonomy views views_rss
+dependencies[] = station
+dependencies[] = audio 
+dependencies[] = taxonomy
+dependencies[] = views
 package = Station
+core = 6.x
+; Information added by drupal.org packaging script on 2008-12-16
+version = "6.x-2.0-unstable1"
+core = "6.x"
+project = "station"
+datestamp = "1229424933"
+
Index: archive/station_archive.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/station/archive/station_archive.module,v
retrieving revision 1.39
diff -u -p -r1.39 station_archive.module
--- archive/station_archive.module	21 Nov 2007 15:57:47 -0000	1.39
+++ archive/station_archive.module	19 Apr 2009 20:57:16 -0000
@@ -22,47 +22,39 @@ function station_archive_help($section =
 /**
  * Implementation of hook_menu().
  */
-function station_archive_menu($may_cache) {
-  $items = array();
-  if ($may_cache) {
+function station_archive_menu() {
     // legacy menus, views is where it's at now...
-    $items[] = array(
-      'path' => 'last',
+    $items['last'] = array(
       'title' => t('Show archive'),
-      'callback' => 'station_archive_view_html',
-      'access' => user_access('access content'),
+      'page callback' => 'station_archive_view_html',
+      'access arguments' => array('access content'),
       'type' => MENU_CALLBACK,
     );
-    $items[] = array(
-      'path' => 'last/hours',
-      'callback' => 'station_archive_view_hours_html',
-      'access' => user_access('access content'),
+    $items['last/hours'] = array(
+      'page callback' => 'station_archive_view_hours_html',
+      'access arguments' => array('access content'),
       'type' => MENU_CALLBACK,
     );
-    $items[] = array(
-      'path' => 'rss',
+    $items['rss'] = array(
       'title' => t('RSS show archive'),
-      'callback' => 'station_archive_view_rss',
-      'access' => user_access('access content'),
+      'page callback' => 'station_archive_view_rss',
+      'access arguments' => array('access content'),
       'type' => MENU_CALLBACK,
     );
-    $items[] = array(
-      'path' => 'rss/hours',
-      'callback' => 'station_archive_view_hours_rss',
-      'access' => user_access('access content'),
+    $items['rss/hours'] = array(
+      'page callback' => 'station_archive_view_hours_rss',
+      'access arguments' => array('access content'),
       'type' => MENU_CALLBACK,
     );
     // end legacy menu items
 
-    $items[] = array('path' => 'admin/settings/station/archive',
+    $items['admin/settings/station/archive'] = array(
       'title' => t('Archive'),
-      'callback' => 'drupal_get_form',
-      'callback arguments' => array('station_archive_admin_settings'),
-      'access' => user_access('administer site configuration'),
+      'page callback' => 'drupal_get_form',
+      'page arguments' => array('station_archive_admin_settings'),
+      'access arguments' => array('administer site configuration'),
       'type' => MENU_LOCAL_TASK
     );
-  }
-
   return $items;
 }
 
@@ -390,7 +382,7 @@ function station_archive_nodeapi(&$node,
           $breadcrumb[] = array('path' => 'station/archives', 'title' => t('Archives'));
           $breadcrumb[] = array('path' => 'station/archives/'. $node->station_archive['program_nid'], 'title' => $node->station_archive['program_title']);
           $breadcrumb[] = array('path' => 'node/'. $node->nid);
-          menu_set_location($breadcrumb);
+          drupal_set_breadcrumb($breadcrumb);
 
           // Provide information to admins on the import and deletion dates.
           if (user_access('administer archive')) {
Index: archive/views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/station/archive/views.inc,v
retrieving revision 1.13
diff -u -p -r1.13 views.inc
--- archive/views.inc	4 Dec 2007 17:20:01 -0000	1.13
+++ archive/views.inc	19 Apr 2009 20:57:16 -0000
@@ -2,61 +2,63 @@
 
 // $Id: views.inc,v 1.13 2007/12/04 17:20:01 drewish Exp $
 
+function station_archive_views_api() {
+  return array(
+    'api' => 2.0,
+  );
+}
 /**
  * Implementation of hook_views_tables().
  */
-function station_archive_views_tables() {
-  $tables['station_archive_item'] = array(
-    'name' => 'station_archive_item',
-    'join' => array(
-      'left' => array(
-        'table' => 'node',
-        'field' => 'nid'
-      ),
-      'right' => array(
+function station_archive_views_data() {
+  $data['station_archive_item']['table']['group']  = t('Station archive');
+  $data['station_archive_item']['table']['join']['node'] = array(
+			 'left_field' => 'nid',
         'field' => 'audio_nid'
-      )
-    ),
-    'fields' => array(
-      'aired' => array(
-        'name' => t('Station Archive: Air date'),
-        'sortable' => TRUE,
-        'handler' => views_handler_field_dates(),
-        'option' => 'string',
+  );
+
+
+  $data['station_archive_item']['aired'] = array(
+        'title' => t('Station Archive: Air date'),
         'help' => t('Date the audio was aired.'),
+    'field' => array(
+        'click sortable' => TRUE,
+        'handler' => 'views_handler_field_date',
       ),
-      'imported' => array(
-        'name' => t('Station Archive: Import date'),
-        'sortable' => TRUE,
-        'handler' => views_handler_field_dates(),
-        'option' => 'string',
+		);
+
+
+  $data['station_archive_item']['imported'] = array(
+        'title' => t('Station Archive: Import date'),
         'help' => t('Date the audio was imported into the station archive.'),
-      ),
-    ),
-    'filters' => array(
-      'permanent' => array(
-        'name' => t('Station Archive: Is in permanent archive'),
-        'operator' => array('=' => 'Equals'),
-        'list' => 'views_handler_operator_yesno',
-        'list-type' => 'select',
+        'field' => array('sortable' => TRUE,
+        'handler' => 'views_handler_field_date',
+		  'option' => 'string',
+),
+		);
+
+  $data['station_archive_item']['permanent'] = array(
+        'title' => t('Station Archive: Is in permanent archive'),
         'help' => t('Filter whether the node is part of the permanent archive.'),
-      ),
+    'filters' => array(
     ),
   );
-  $tables['station_archive_program'] = array(
-    'name' => 'station_archive_program',
-    'join' => array(
-      'left' => array(
-        'table' => 'station_archive_item',
-        'field' => 'program_nid'
-      ),
-      'right' => array(
-        'field' => 'program_nid'
+  $data['station_archive_item']['program_nid'] = array(
+			 'title' => t('Station Archive: Audio by Program'),
+  'help' => t('The Program NID argument allows visitors to filter archived audio to those of the specified program.'),
+  'argument' => array(
+			 'handler' => 'views_handler_argument_numeric',
       )
-    ),
-    'fields' => array(
-      'title' => array(
-        'name' => t('Station Archive: Program title'),
+);
+  $data['station_archive_program']['table']['join']['station_archive_item'] = array(
+			 'left_field' => 'program_nid',
+			 'field' => 'program_nid',
+  );
+
+   $data['station_archive_program']['title'] = array(
+        'title' => t('Station Archive: Program title'),
+        'help' => t('The program that this audio is a recording of.'),
+		  'field' => array(
         'sortable' => TRUE,
         'handler' => 'station_archive_handler_audio_program_title_field',
         'option' => array(
@@ -66,13 +68,9 @@ function station_archive_views_tables() 
              'nolink' => 'Without link'
            ),
         ),
-        'addlfields' => array('program_nid'),
-        'help' => t('The program that this audio is a recording of.'),
-      ),
     ),
   );
-
-  return $tables;
+  return $data;
 }
 
 /**
