template_preprocess_node I would like to be able to dynamically add classes to specific field wrappers.
Is this possible or does
template_preprocess_node run after
template_preprocess_field? I would much prefer to use
template_preprocess_node if possible as the class relies on other fields.
I've tried adding:
but neither seem to take effect.
Were I to do the same within
template_preprocess_field then I apparently would add classes to
$classes_array which would automatically flatten into
$classes, however these values don't appear to be available, or at least provided, to
After investigation, it seems
template_preprocess_node does run first, however it doesn't seem to have access to
$classes_array as it appears in