Hi,

How can I override the function theme_field_collection_table_multiple_value_fields in my template.php?

I tried creating a function MYTHEME_field_collection_table_multiple_value_fields, but that didn't accomplish anything.

thanks

Comments

kristofferwiklund’s picture

Issue summary: View changes

I don't think that is a good approach as you then need to copy all the logic code in /theme/theme.inc, row 51 to 239.

What do you want to accomplish?

kaare’s picture

Status: Active » Fixed

@jglynn: You're doing it right. Remember to flush your cache.

I don't think that is a good approach as you then need to copy all the logic code in /theme/theme.inc, row 51 to 239.

This is the exact right approach if you want to override the output of something. This is the power of and curse with Drupal. Everything rendered should be extracted to a theme function for site builders or themers to override. If the theme function contains too much logic you're doing it wrong.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.