Drupal developer tools and short cuts.

// check if a field has a value and do stuff with it
if (stools_field_has_value($node, 'field_location')) { 
  $value = stools_field_value($node, 'field_location');
}
Supporting organizations: 

Project information

Downloads