I have a field called field_price. How do I get that field on my page to display Free
when the value is $0.00
, and the actual value every other time?
I tried to intercept the loading of the field by doing things like:
mytemplate_hook_load(){
// do stuff
}
mytemplate_process_field(){
// do stuff
}
mytemplate_preprocess_field(){
// do stuff
}
etc.. etc.. etc..
I tried so many different permutations of the above as modules, template, changing function names etc... But none of them ever fire. I know I have the Field module enabled.
What am I doing wrong?
Note: I am using drupal 7