Getting field label with entity_metadata_wrapper Say I am iterating through a list of field names, and I have loaded a particular node using entity_metadata_wrapper().

$wrapper = entity_metadata_wrapper('node', $node);


Shouldn't I be able to just grab the label by using the following command?

Or is this not the correct command to do what I want?

        foreach($field_names as $item)
        {
           $label = $wrapper-&gt;$item-&gt;label();
        }


Here's the field as it is in the actual node:

'field_grade_comment' =&gt; 
    array (size=13)
      'default_value' =&gt; null
      'description' =&gt; string '' (length=0)
      'display' =&gt; 
        array (size=4)
          'default' =&gt; 
            array (size=5)
              ...
          'email' =&gt; 
            array (size=5)
              ...
          'teaser' =&gt; 
            array (size=4)
              ...
          'node_reference_embedded_view' =&gt; 
            array (size=4)
              ...
      'label' =&gt; string 'Grade Comment' (length=13)
How about this?


$wrapper = entity_metadata_wrapper('node', $node);
$fields = $wrapper->getPropertyInfo();

foreach($fields as $field => $info) {
  $label = $info['label'];
}