Index: keyword_filter/feedapi_keyword_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feedapi_itemfilter/keyword_filter/feedapi_keyword_filter.module,v
retrieving revision 1.1
diff -u -r1.1 feedapi_keyword_filter.module
--- keyword_filter/feedapi_keyword_filter.module	27 May 2008 19:54:22 -0000	1.1
+++ keyword_filter/feedapi_keyword_filter.module	17 Oct 2009 20:10:58 -0000
@@ -49,8 +49,8 @@
       '#type' => 'item',
       //        '#title' => t('Information about filter'),
       //        '#value' => t('Keyword filter will check ...'),
-      '#description' => t('Keyword filter will check the &lt;description&gt; field of feed items against a set of keyword(s)
-      immidiately after parsing. Any item, that has no maching keywords will not be saved with the feed.'),
+      '#description' => t('Keyword filter will check the &lt;description&gt; and (optionally) the &lt;title&gt; field of feed items against a set of keyword(s)
+      immediately after parsing. Any item, that has no maching keywords will not be saved with the feed.'),
       '#weight' => -15,
       );
       $form['keywords'] = array(
@@ -62,8 +62,15 @@
         Keywords that start with minus (-) will be used as negative keywords.
         Please separate different keywords with comma (,). You can also use phrases - e.g. "top performance, -bad problems".'),
         );
-        return $form;
-        break;
+      $form['includeTitle'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Search title'),
+        '#returnValue' => 1,
+        '#default_value' => 0,
+        '#description' => t('Searching will include the title field if this box is checked, otherwise it is limited to the Description field only.'),
+      );
+      return $form;
+      break;
 
       // Process the items.
       case 'process':
@@ -101,12 +108,12 @@
             // If negative keyword has been found then move directly to next item.
             foreach ($worldlist['neg'] as $value) {
               // Number 2 here means that we are stepping out from both foreach statement.
-              if (stristr($item->description, $value)) continue 2;
+              if (stristr($item->description, $value) || ($options["includeTitle"] == 1 && stristr($item->title, $value))) continue 2;
             }
 
             // And now we process positive keywords.
             foreach ($worldlist['pos'] as $value) {
-              if (stristr($item->description, $value)) {
+              if (stristr($item->description, $value) || ($options["includeTitle"] == 1 && stristr($item->title, $value))) {
                 // If keyword found then the item is worth saving.
                 $newfeed[] = $feed->items[$key];
                 // And there is no reason to try out remaining keywords --> move to the next item.
