? simplefeed_item_handler_field_title.inc
Index: simplefeed.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplefeed/simplefeed.module,v
retrieving revision 1.46.2.19
diff -u -p -r1.46.2.19 simplefeed.module
--- simplefeed.module	15 Oct 2008 01:38:00 -0000	1.46.2.19
+++ simplefeed.module	5 Dec 2008 06:00:26 -0000
@@ -462,4 +462,13 @@ if (!function_exists("htmlspecialchars_d
   function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) {
     return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));
   }
+}
+
+/**
+ * Implementation of hook_views_api().
+ */
+function simplefeed_views_api() {
+  return array(
+    'api' => 2.0,
+  );
 }
\ No newline at end of file
Index: simplefeed_item.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplefeed/simplefeed_item.module,v
retrieving revision 1.52.2.17
diff -u -p -r1.52.2.17 simplefeed_item.module
--- simplefeed_item.module	7 Oct 2008 07:50:19 -0000	1.52.2.17
+++ simplefeed_item.module	5 Dec 2008 06:00:26 -0000
@@ -450,3 +450,12 @@ function simplefeed_item_feed_parse($pro
     simplefeed_stats_updated_feed($count, $process_feed->nid);
   }
 }
+
+/**
+ * Implementation of hook_views_api().
+ */
+function simplefeed_item_views_api() {
+  return array(
+    'api' => 2.0,
+  );
+}
\ No newline at end of file
Index: simplefeed_item.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplefeed/Attic/simplefeed_item.views.inc,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 simplefeed_item.views.inc
--- simplefeed_item.views.inc	13 Mar 2008 19:44:50 -0000	1.1.2.2
+++ simplefeed_item.views.inc	5 Dec 2008 06:00:26 -0000
@@ -2,6 +2,22 @@
 // $Id: simplefeed_item.views.inc,v 1.1.2.2 2008/03/13 19:44:50 csevb10 Exp $
 
 /**
+ * Implementation of hook_views_handlers().
+ */
+function simplefeed_item_views_handlers() {
+  return array(
+    'info' => array(
+      'path' => drupal_get_path('module', 'simplefeed'),
+    ),
+    'handlers' => array(
+      'simplefeed_item_handler_field_title' => array(
+        'parent' => 'views_handler_field_node',
+      ),
+    ),
+  );
+}
+
+/**
  * Implementation of hook_views_data().
  */
 function simplefeed_item_views_data() {
@@ -20,7 +36,7 @@ function simplefeed_item_views_data() {
     'field' => array(
       'field' => 'title',
       'group' => t('Simplefeed Feed Item'),
-      'handler' => 'views_handler_field_simplefeed_item_title',
+      'handler' => 'simplefeed_item_handler_field_title',
     ),
   );
   
@@ -92,7 +108,7 @@ function simplefeed_item_views_data() {
     'field' => array(
       'field' => 'title',
       'group' => t('Simplefeed Feed Item'),
-      'handler' => 'views_handler_field_simplefeed_item_title',
+      'handler' => 'simplefeed_item_handler_field_title',
     ),
     'sort' => array(
       'handler' => 'views_handler_sort',
@@ -125,7 +141,7 @@ function simplefeed_item_views_data() {
       'title' => array(
         'field' => 'url',
         'name' => t('SimpleFeed Feed Item: Article title'),
-        'handler' => 'views_handler_field_simplefeed_item_title',
+        'handler' => 'simplefeed_item_handler_field_title',
         'query_handler' => 'views_query_handler_field_simplefeed_item_title',
         'option' => array(
           '#type' => 'select',
@@ -172,24 +188,6 @@ function simplefeed_item_views_data() {
 }
 
 /**
- * Field handler to provide simple renderer that allows linking to a parent
- * feed.
- *
- * @ingroup views_field_handlers
- */
-class views_handler_field_simplefeed_item_title extends views_handler_field_node {
-  function init(&$view, &$data) {
-    parent::init($view, $data);
-    $this->additional_fields[] = 'nid'; 
-    $this->nid_field = 'feed_parent_node_nid';
-  }
-  
-  function render($values) {
-    return $this->render_link(check_plain($values->{$this->field_alias}), $values);
-  }
-}
-
-/**
  * Implementation of hook_views_default_views().
  */
 function simplefeed_item_views_default_views() {
