By ErnestoJaboneta on
I'm making a module to report the total values of a field for all nodes of content type and I can't figure out how to get the display value of a select fields options.
The module is for field statistics, specifically in my case for sales tracking. I have a taxonomy select field called "Status". The options are like 'No Updates', 'Sold', 'Not Interested', etc. My module would calculate each status and display the totals like this
No Updates: 5
Sold: 10
Not Interested: 10
But what I am getting is this
1:5
2:10
4:10
How can I get the actual value names?
Comments
What does your code look
What does your code look like?
<?phpfunction
How about changing
How about changing
to
which should replace tid with it's name
That didn't do what I wanted...
Turns out my field is a select list field. Not a taxonomy select field. Where are the values for that stored?