function entity_i18n_string

cis7 entity.module entity_i18n_string($name, $default, $langcode = NULL)
cle7 entity.module entity_i18n_string($name, $default, $langcode = NULL)
elmsmedia7 entity.module entity_i18n_string($name, $default, $langcode = NULL)
icor7 entity.module entity_i18n_string($name, $default, $langcode = NULL)
meedjum_blog7 entity.module entity_i18n_string($name, $default, $langcode = NULL)
mooc7 entity.module entity_i18n_string($name, $default, $langcode = NULL)

Helper for using i18n_string().

Parameters

$name: Textgroup and context glued with ':'.

$default: String in default language. Default language may or may not be English.

$langcode: (optional) The code of a certain language to translate the string into. Defaults to the i18n_string() default, i.e. the current language.

See also

i18n_string()

4 calls to entity_i18n_string()
Entity::getTranslation in sites/all/modules/ulmus/entity/includes/entity.inc
Gets the raw, translated value of a property or field.
field_collection_fieldset_field_formatter_view in sites/all/modules/ulmus/field_collection_fieldset/field_collection_fieldset.module
Implements hook_field_formatter_view().
field_collection_field_formatter_links in sites/all/modules/ulmus/field_collection/field_collection.module
Helper function to add links to a field collection field.
field_collection_field_formatter_view in sites/all/modules/ulmus/field_collection/field_collection.module
Implements hook_field_formatter_view().

File

sites/all/modules/ulmus/entity/entity.module, line 1324
Module file for the entity API.

Code

function entity_i18n_string($name, $default, $langcode = NULL) {
  return function_exists('i18n_string') ? i18n_string($name, $default, array('langcode' => $langcode)) : $default;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.