function bootstrap_languages_theme in Bootstrap Languages 7
Same name and namespace in other branches
- 8 bootstrap_languages.module \bootstrap_languages_theme()
Implements hook_theme().
File
- ./
bootstrap_languages.module, line 28 - Provides a Bootstrap dropdown button to switch between available languages.
Code
function bootstrap_languages_theme($existing, $type, $theme, $path) {
$templates_path = drupal_get_path('module', 'bootstrap_languages') . '/templates';
return array(
'bootstrap_languages_switcher_block' => array(
'template' => 'bootstrap-languages-switcher-block',
'variables' => array(
'default_option' => NULL,
'btn_type' => NULL,
'languages' => NULL,
),
'path' => $templates_path,
),
);
}