You are here

function _exif_get_image_language in Exif 7

1 call to _exif_get_image_language()
_exif_get_file_uri_and_language in ./exif.module

File

./exif.module, line 454

Code

function _exif_get_image_language($node, $field) {
  if (property_exists($node, 'language')) {
    if (array_key_exists($node->language, $field)) {
      return $node->language;
    }
    else {
      if (array_key_exists('und', $field)) {
        return 'und';
      }
      else {
        return FALSE;
      }
    }
  }
  else {
    return FALSE;
  }
}