function themekey_locale_themekey_global in ThemeKey 7
Same name and namespace in other branches
- 6.4 modules/themekey.locale.inc \themekey_locale_themekey_global()
- 6 modules/themekey.locale.inc \themekey_locale_themekey_global()
- 6.2 modules/themekey.locale.inc \themekey_locale_themekey_global()
- 6.3 modules/themekey.locale.inc \themekey_locale_themekey_global()
- 7.3 modules/themekey.locale.inc \themekey_locale_themekey_global()
- 7.2 modules/themekey.locale.inc \themekey_locale_themekey_global()
Implements hook_themekey_paths().
File
- modules/
themekey.locale.inc, line 41 - Provides some node attributes as ThemeKey properties.
Code
function themekey_locale_themekey_global() {
global $language;
$parameters = array();
if (empty($language->language) || LANGUAGE_NONE == $language->language) {
$parameters['locale:language'] = 'neutral';
}
else {
$parameters['locale:language'] = $language->language;
}
return $parameters;
}