### Eclipse Workspace Patch 1.0
#P feedapi-latest
Index: feedapi.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/feedapi/feedapi.module,v
retrieving revision 1.23.2.123
diff -u -r1.23.2.123 feedapi.module
--- feedapi.module	10 Mar 2008 16:24:30 -0000	1.23.2.123
+++ feedapi.module	11 Mar 2008 02:12:11 -0000
@@ -295,6 +295,16 @@
     '#options' => _feedapi_content_types_list(),
     '#required' => TRUE,
   );
+  $form['override_title'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Use TITLE attribute of OPML entries as feed title'),
+    '#description' => t('If checked feed title will be overriden with the information from OPML file'),
+  );
+  $form['override_body'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Use TEXT attribute of OPML entries as feed description'),
+    '#description' => t('If checked feed description will be overriden with the information from OPML file'),
+  ); 
   $form['#attributes']['enctype'] = 'multipart/form-data';
   $form['submit'] = array('#type' => 'submit', '#value' => 'Submit');
   if (module_exists('og')) {
@@ -1406,8 +1416,12 @@
           // Generate a feed structure
           $node = new stdClass();
           $node->type = $args['feed_type'];
-          $node->title = $feed['TITLE'];
-          $node->body = $feed['TEXT'];
+          if ($args['override_title']) {
+            $node->title = $feed['TITLE'];
+          }
+          if ($args['override_body']) {
+            $node->body = $feed['TEXT'];
+          }
           $node->og_groups = $args['og_groups'];
           $node->og_public = (int) $args['og_public'];
           $node = feedapi_create_node($node, $feed['XMLURL']);
