CSV theme module
Posted by maciej.zgadzaj on June 11, 2011 at 9:25pm
I just put together a small module for formatting table arrays as CSV file content. Generally, I needed a feature for outputting the same data either as table (using built-it theme_table() function) or as CSV.
The result is new theme_csv() function, used in exactly the same way and with the same params as theme_table(), plus two additional optional params for user-defined delimiter and enclosure:
Read more