Get field language

Public

Get raw version
php
  1. // Don't use 'und' for language.
  2. $lang = field_language('taxonomy_term', $data);
  3. or
  4. $lang = field_language('node', $node, 'field_image');
  5. $fid = $node->field_image[$lang][0]['fid'];