Hello,
First of all thank you for this module.
I think we could add some flexibility providing an alter hook where users can modify/extend the generic PHPExcel file. IE Adding a specific cell formatting for a column.
Patch attached adds anew hook hook_views_data_export_phpexcel_alter() where users can do all these things.
Regards.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | allow_to_change_phpexcel_object_via_preprocess_hooks.patch | 2.2 KB | eugis |
| views_data_export_phpexcel_alter.patch | 1.45 KB | plopesc |
Comments
Comment #1
eugis commentedGreat patch!
But I'm wondering, is it a good pattern to have drupal_alter() inside a theme function? It's like a step back from theme layer to module layer...
Comment #2
eugis commentedSo here's my approach to this issue. Usage example: