Rendering Drupal 7 field values using the FieldAPI
Ever rendered a field value from a node object like this before
$value = $node->field_name['und'][0]['safe_value'];That was common in drupal 6. I do the same even in drupal 7 but found the best way of rendering a field value from an entity using the Field API that ships with drupal 7.