CSV

Component ID

2604916

Component name

CSV

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

1215

Component created

Component changed

Component body

Purpose

This API-only module is an atomic helper to provide a Drupal output handler similar to drupal_json_output, only for CSV files.

Since CSV delivery is still a frequently requested issue and views is not always involved, we decided to build a standard helper for lightweight export tasks.

Technical

It will send arbitrary data to the client using php's fput_csv() function and can be used as a menu callback handler. However you should be aware that this handler writes directly to stdout and then exits (using drupal_exit()), thus you will not be able to alter the output in any way after calling the handler.

Usage etc.

There is little to know, but all that little can be found in the README.md file.

Credits

Kindly sponsored by HiRN GmbH.