Active
Project:
Content Profile
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2009 at 21:27 UTC
Updated:
10 Apr 2009 at 21:27 UTC
Sorry--I'm sure this is incredibly dumb, but...using the very nice variable $content_profile, I'm able, easily, to get the values for given fields for theming purposes...but...I'm not seeing where the -label- for the field is accessed. For example, I have a cck field: "Home City:" currently appearing on the content profile. It's easy, via the code below, to extract the value, but not sure how to get the label (Home City) itself as that's not a part of the content_profile var. Is the only way to pull it from $node?
$city = $content_profile->get_variable('userprofile', 'field_city');
print $city[0]['safe'];
-Daniel