You are here

function _datalayer_defaults in dataLayer 7

Same name and namespace in other branches
  1. 8 datalayer.module \_datalayer_defaults()

Defines Drupal-wide data layer defaults.

2 calls to _datalayer_defaults()
DataLayerUnitTests::testDataLayerDefaults in tests/datalayer.unit.test
Test DataLayer Defaults function.
datalayer_add in ./datalayer.module
Allow adding to the data layer easy on the fly, similar to drupal_add_js().

File

./datalayer.module, line 363
Client-side data space.

Code

function _datalayer_defaults() {
  global $language;
  return array(
    'drupalLanguage' => $language->language,
    'drupalCountry' => variable_get('site_default_country', ''),
  );
}