function themekey_locale_themekey_properties in ThemeKey 7.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.2 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()
Implements hook_themekey_properties().
Provides additional properties for the ThemeKey module:
- locale:language
Return value
array of themekey properties and mapping functions
File
- modules/
themekey.locale.inc, line 24 - 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" or "neutral". See !link for the codes of your enabled languages', array(
'!link' => l(t('!path', array(
'!path' => 'admin/config/language',
)), 'admin/config/language'),
)),
'validator' => 'themekey_validator_language',
'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
);
return array(
'attributes' => $attributes,
);
}