If I have field_a on a field collection and implement
<?php
function mytheme_field__field_a($vars) {
...
}
?>
in template.php, I cannot get this function to run for that particular field. If I check the theme_hook_suggestions as described in theme_field(), this function should be called, but is not. Additionally, an attempt to template_preprocess_field_collection_item() does not run either. I can only get mytheme_field__field_collection_item() and mytheme_field__field_collection_view() to actually execute. Is this by design? I'm suprised that I'm unable to get field_a to be themed using my override function, considering it's just a field attached to an entity and from my understanding shouldn't be subject to any special rules.
Comments
Comment #1
sachbearbeiter CreditAttribution: sachbearbeiter commentedsame question ...
Comment #2
jmuzz CreditAttribution: jmuzz commented