This function attached labels in #markup which makes it hard to alter these fields in a natural way, and it makes it really hard to figure out where the label is set and how to alter it. This way of attaching labels to fields is unnecessarily convoluted and complicated.

Comments

rszrama’s picture

Priority: Major » Normal
Status: Active » Closed (works as designed)

They're theme functions - overriding them is the natural way to edit them. I'm not sure what more we could do. For reference, you can look in node_build_content() where it uses a theme function in a #markup element to put in the node links.