I have a field on a content type (let's call it Label1). I want the label to be displayed on the node, but I want to use Label2 as the label instead (without renaming the field). I am trying to preprocess the field using a preprocess field function, but am having trouble getting anything to work. Does anyone have any idea on how I would do this?

Also, I'm using D7.


  • 1
    Which Drupal version, 7 or 8? as the answer will be different.
    – No Sssweat
    Commented Dec 13, 2016 at 13:05
  • Oop, I should have specified - this is for D7.
    – ashlinry
    Commented Dec 13, 2016 at 15:04


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.