Replace LANGUAGE_NONE with proper language code.

Comments

radimklaska’s picture

I need to know entity type to get the right language using field_language($entity_type, $entity, $field_name = NULL, $langcode = NULL)

I don't like passing around $entity_type, but core does that too :-/ and there is no way I can figure out $entity_type on the spot.

  • radimklaska committed 581a8b8 on 7.x-1.x
    Issue #2424165 by radimklaska: Entity translation support
    
radimklaska’s picture

Assigned: radimklaska » Unassigned
Status: Active » Fixed

I've added $entity->vfo_entity_type on hook_entity_load so we can use it in field_language()

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.