1 locale.module locale_block_info()

Implements hook_block_info().

File

core/modules/locale/locale.module, line 842
Add language handling functionality and enables the translation of the user interface to languages other than English.

Code

function locale_block_info() {
  include_once BACKDROP_ROOT . '/core/includes/language.inc';
  $block = array();
  $info = language_types_info();
  foreach (language_types_get_configurable() as $type) {
    $block[$type] = array(
      'info' => t('Language switcher (@type)', array('@type' => $info[$type]['name'])),
      'description' => t('Switches the site language for the @type portions of the page.', array('@type' => $info[$type]['name'])),
    );
  }
  return $block;
}