Closed (fixed)
Project:
Text list formatter
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2011 at 11:46 UTC
Updated:
30 Oct 2011 at 17:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
calte commented+1
Comment #2
Scott J commentedI think this would be very useful.
Comment #3
pepemty commented+1
Comment #4
basicmagic.net commentedsubscribe
Comment #5
mlncn commentedThis being worked on?
Comment #6
jdufaur commentedsubscribe
Comment #7
damiankloip commentedI have made a sandbox for the D7 version of this module (http://drupal.org/sandbox/damiankloip/1191818) and made an initial commit. I have been speaking to becw about this and it's up for review. So hopefully there should be a 7.x branch for this project shortly!
Comment #8
skizzo commentedthank you damiankloip! subscribing
Comment #9
jenpasch commentedthanks, looking forward to having this in the d7 arsenal
Comment #10
damiankloip commentedHere is a D7 patch (taken from my sandbox ^^).
Comment #11
damiankloip commentedUpdated patch, an xss fix and a few other things.
Comment #12
becw commentedI've reviewed this patch and committed it with a few changes. My most significant edit was to
theme_textformatter_comma()-- the 'and' option didn't have enough spaces, and setting the 'html_tag' setting to "none" still yielded a tag. See commit b09c38.Comment #13
kansaj commentednot quite sure but in the"comma" case the output are not the labels, but the keys. So instead to print "zero" form the pair 0|zero it prints 0, which is not correct.
Comment #14
damiankloip commentedI don't think this has been tested yet for select lists. Something to look at.
Comment #15
becw commentedkansaj, damiankloip: I've created a new issue for the bug report in #13 -- #1311466: Printing values rather than labels in comma-separated lists