You are here

themekey.locale.inc in ThemeKey 6

File

modules/themekey.locale.inc
View source
<?php

function themekey_locale_themekey_properties() {

  // Attributes for properties
  $attributes = array();
  $attributes['locale:language'] = array(
    'path' => 'locale:language',
    'description' => t('Locale: Language'),
  );
  return array(
    'attributes' => $attributes,
  );
}
function themekey_locale_themekey_global() {
  global $language;
  $parameters = array();
  $parameters['locale:language'] = isset($language->language) ? $language->language : 'en';
  return $parameters;
}