Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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