You are here

function themekey_locale_themekey_properties in ThemeKey 6.3

Same name and namespace in other branches
  1. 6.4 modules/themekey.locale.inc \themekey_locale_themekey_properties()
  2. 6 modules/themekey.locale.inc \themekey_locale_themekey_properties()
  3. 6.2 modules/themekey.locale.inc \themekey_locale_themekey_properties()
  4. 7.3 modules/themekey.locale.inc \themekey_locale_themekey_properties()
  5. 7 modules/themekey.locale.inc \themekey_locale_themekey_properties()
  6. 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 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". See !link to find the codes for your enabled languages', array(
      '!link' => l(t('!path', array(
        '!path' => 'admin/settings/language',
      )), 'admin/settings/language'),
    )),
    'validator' => 'themekey_validator_language',
    'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
  );
  return array(
    'attributes' => $attributes,
  );
}