By lthoughton on
I have a custom CCK profile page template. One of my fields I display on the page is an address field from the addresses module. When the user enters an address, the field appears as normal, but I can't seem to hide the field completely when the user decides to leave the field blank. I get a blank field with an " ' " and the text preceding appears, i.e. "Home:" . Below is the code I use in my template. Any help is appreciated. Cheers.
// Home Location
if(content_format('field_home_location', $field_home_location[0]) != ''):
Home: print ($node->field_home_location[0]['view'])
endif