function themekey_locale_themekey_properties in ThemeKey 6.2
Same name and namespace in other branches
- 6.4 modules/themekey.locale.inc \themekey_locale_themekey_properties()
- 6 modules/themekey.locale.inc \themekey_locale_themekey_properties()
- 6.3 modules/themekey.locale.inc \themekey_locale_themekey_properties()
- 7.3 modules/themekey.locale.inc \themekey_locale_themekey_properties()
- 7 modules/themekey.locale.inc \themekey_locale_themekey_properties()
- 7.2 modules/themekey.locale.inc \themekey_locale_themekey_properties()
Implements hook_themekey_properties().
Provides additional properties for module ThemeKey:
- locale:language
Return value
array of themekey properties and mapping functions
File
- modules/
themekey.locale.inc, line 18 - Provides some node attributes as ThemeKey properties.
Code
function themekey_locale_themekey_properties() {
// Attributes for properties
$attributes = array();
$attributes['locale:language'] = array(
'description' => t('Locale: Language - The code of the current site language, formatted like "en" or "de". See !link for your the codes of the enabled languages', array(
'!link' => l('admin/settings/language', 'admin/settings/language'),
)),
'validator' => 'themekey_validator_language',
);
return array(
'attributes' => $attributes,
);
}