Index: simplefeed_item_views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplefeed/simplefeed_item_views.inc,v
retrieving revision 1.3
diff -u -F^f -r1.3 simplefeed_item_views.inc
--- simplefeed_item_views.inc   19 Apr 2007 04:13:20 -0000      1.3
+++ simplefeed_item_views.inc   1 Aug 2007 04:40:00 -0000
@@ -26,6 +26,20 @@ function simplefeed_item_views_tables() 
       'url' => array(
         'name' => t('SimpleFeed Feed Item: URL'),
         'help' => t('The URL to the original page for this feed item.')
+      ),
+      'title' => array(
+        'field' => 'url',
+        'name' => t('SimpleFeed Feed Item: Article title'),
+        'handler' => 'views_handler_field_feed_item_title',
+        'query_handler' => 'views_query_handler_field_feed_item_title',
+        'option' => array(
+          '#type' => 'select',
+          '#options' => array(
+            1 => t('As link'), 
+            0 => t('Without link'), 
+          ),
+        ),
+        'help' => t('The Title of the original page.')
       )
     ),
     'sorts' => array(
@@ -151,6 +165,25 @@ function views_handler_arg_feed_parent($
   }
 }    
 
+/**
+ * Add additional query information to the article title field
+ */
+function views_query_handler_field_feed_item_title($fielddata, $fieldinfo, &$query) {
+  $query->add_field('title', 'node');
+}
+
+/**
+ * Format a field as a title to the article (possibly as a link)
+ */
+function views_handler_field_feed_item_title($fieldinfo, $fielddata, $value, $data) {
+  if ($fielddata['options']) {
+    return l($data->title, $value);
+  }
+  else {
+    return check_plain($data->title);
+  }
+}
+
 /*
  * Format a field as a link to the book parent node
  */
