? 695270_textformatters_singlelist.patch
Index: textformatter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/textformatter/textformatter.module,v
retrieving revision 1.2
diff -r1.2 textformatter.module
32a33,42
>     
>     'text_unordered_list_single' => array(
>       'label' => t('Unordered List (single)'),
>       'field types' => array('text'),
>       'multiple values' => CONTENT_HANDLE_CORE,),
>       
>     'text_ordered_list_single' => array(
>       'label' => t('Ordered List (single)'),
>       'field types' => array('text'),
>       'multiple values' => CONTENT_HANDLE_CORE,),
59a70,78
> 
>     'textformatter_formatter_text_ordered_list_single' => array(
>       'arguments' => array('element' => NULL),
>       'function' => 'theme_textformatter_formatter_text_orderedlist_single'),
> 
>     'textformatter_formatter_text_unordered_list_single' => array(
>       'arguments' => array('element' => NULL),
>       'function' => 'theme_textformatter_formatter_text_unorderedlist_single'),
> 
166a186,211
> 
> 
> /**
>  * Theme a single textfield as an HTML unordered list.
>  *
>  * @ingroup themeable
>  */
>   
> function theme_textformatter_formatter_text_unorderedlist_single($element) {
>   $output = '';
>   $txt = ($allowed =_text_allowed_values($element)) ? $allowed : $element['#item']['safe'];
>   $items = array_filter(explode("\n",trim($txt)));
>   return theme('item_list',$items);
> }
> 
> /**
>  * Theme a single textfield as an HTML ordered list.
>  *
>  * @ingroup themeable
>  */
> function theme_textformatter_formatter_text_orderedlist_single($element) {
>   $output = '';
>   $txt = ($allowed =_text_allowed_values($element)) ? $allowed : $element['#item']['safe'];
>   $items = array_filter(explode("\n",trim($txt)));
>   return theme('item_list',$items, NULL, 'ol');
> }
\ No newline at end of file
