You are here

function entity_translation_language_load in Entity Translation 7

Menu loader callback.

File

./entity_translation.module, line 768

Code

function entity_translation_language_load($langcode, $entity_type = NULL, $entity = NULL) {
  $enabled_languages = entity_translation_languages($entity_type, $entity);
  return isset($enabled_languages[$langcode]) ? $langcode : FALSE;
}