function bootstrap_languages_block_info in Bootstrap Languages 7
Implements hook_block_info().
File
- ./
bootstrap_languages.module, line 46 - Provides a Bootstrap dropdown button to switch between available languages.
Code
function bootstrap_languages_block_info() {
include_once DRUPAL_ROOT . '/includes/language.inc';
$block = array();
$info = language_types_info();
foreach (language_types_configurable(FALSE) as $type) {
$block[$type] = array(
'info' => t('Bootstrap Languages (@type)', array(
'@type' => $info[$type]['name'],
)),
'cache' => DRUPAL_NO_CACHE,
);
}
return $block;
}