[development] Views 3 custom handler (was Custom Handlers for Views 2)

jeff at ayendesigns.com jeff at ayendesigns.com
Mon Nov 22 00:32:25 UTC 2010

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 :)
> 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.

More information about the development mailing list