Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently, there is no easy way to alter the display settings for a field that is rendered with Ctools. The reason why, is because hook_field_display_alter() is not invoked when a field is rendered through Ctools.
Proposed resolution
Invoke hook_field_display_alter() in ctools_entity_field_content_type_render()
so the display settings can be altered easily.
Remaining tasks
- Write Patch
API changes
hook_field_display_alter() will now be invoked on Ctools fields were previously it was not. This could cause some problems, but if people need to change this, they are probably using other methods anyways.
Comments