You are here

function i18n_string_get_by_lid in Internationalization 7

Get full string object by lid.

2 calls to i18n_string_get_by_lid()
i18n_string_locale_translate_edit_form in i18n_string/i18n_string.pages.inc
User interface for string editing.
i18n_string_locale_translate_edit_form_submit in i18n_string/i18n_string.pages.inc
Process string editing form submissions.

File

i18n_string/i18n_string.module, line 472
Internationalization (i18n) package - translatable strings.

Code

function i18n_string_get_by_lid($lid) {
  $strings = i18n_string_load_multiple(array(
    'lid' => $lid,
  ));
  return reset($strings);
}