You can use field_language() to figure out which language to use for a specific field. It will return an array in the form of 'field_name' => 'language key' ('und' in your case).http://api.drupal.org/api/drupal/modules--field--field.multilingual.inc/function/field_language/7 I am however not sure where to get the necessary arguments for that function from, especially entity_type, no idea if you can get it from the views metadata.
Yes, both entity_type and entity are available from the views metadata.
So that takes care of resolving what to use instead of hardcoding 'und',
thanks. The remaining question is whether that long identifier, now with
language instead of 'und', is the best way to do it, or whether there's a
get_views_field_value_from_humongously_large_object($field_name) api
function :)
- Re: [development] Custom Handlers for Views 2 Steve Ringwood
- Re: [development] Custom Handlers for Views 2 Jerad Bitner
- Re: [development] Custom Handlers for Views ... jeff
- Re: [development] Custom Handlers for Vi... Earl Miles
- Re: [development] Custom Handlers fo... jeff
- Re: [development] Custom Handle... Earl Miles
- [development] Views 3 custo... jeff
- Re: [development] Views 3 c... Larry Garfield
- Re: [development] Views 3 c... jeff
- Re: [development] Views 3 c... Sascha Grossenbacher
- Re: [development] Views 3 c... jeff
- Re: [development] Views 3 c... Earl Miles
- Re: [development] Custom Handlers for Views 2 Eric Schaefer
- Re: [development] Custom Handlers for Views ... Hans Langouche
- Re: [development] Custom Handlers for Vi... Earl Miles
