Timeline for Alter field items before render
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 24, 2015 at 15:44 | comment | added | Steve Persch | Ah, you're right. hook_field_prepare_view() is one of those many field related hooks available only to the module that declares the field type. Another place where Drupal (pre Drupal 8) implements object oriented concepts with PHP 4 era methodology. | |
Sep 23, 2015 at 9:15 | comment | added | melicerte | I tried hook_field_prepare_view and hook_field_formatter_prepare_view. They were never triggered. I put them in my module, maybe I'll try in my template.php file. Also, I did find a workaround by using MYTHEME_ecommerce_preprocess_field | |
Sep 22, 2015 at 15:34 | history | answered | Steve Persch | CC BY-SA 3.0 |