Author: mcantelon
Date: Fri Feb 24 19:39:24 2012
New Revision: 10976

Log:
Added exploding of | character into bulleted list.

Modified:
   trunk/lib/task/import/csvImportTask.class.php

Modified: trunk/lib/task/import/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportTask.class.php       Fri Feb 24 19:38:40 
2012        (r10975)
+++ trunk/lib/task/import/csvImportTask.class.php       Fri Feb 24 19:39:24 
2012        (r10976)
@@ -653,6 +653,15 @@
       }
     ));
 
+    // convert content with | characters to a bulleted list
+    $import->contentFilterLogic = function($text)
+    {
+      if(substr_count($text, '|'))
+      {
+        return '* '. str_replace($text, "|", "\n* ");
+      }
+    };
+
     $import->addColumnHandler('levelOfDescription', function(&$self, $data)
     {
       $self->object->setLevelOfDescriptionByName($data);

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to