1 bootstrap.inc language_load($langcode)

Loads a language object from the database.

Parameters

$langcode: The language code.

Return value

stdClass: A fully-populated language object or FALSE.

File

core/includes/bootstrap.inc, line 3672
Functions that need to be loaded on every Backdrop request.

Code

function language_load($langcode) {
  $languages = language_list();
  return isset($languages[$langcode]) ? $languages[$langcode] : FALSE;
}