1.20.x 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

includes/bootstrap.inc, line 3880
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;
}