You are here

function _google_tag_variable_info_language in GoogleTagManager 7.2

Implements hook_variable_info().

File

includes/variable.inc, line 206
Contains the variable definitions.

Code

function _google_tag_variable_info_language($options) {

  // @todo Does google_tag_condition_filter() obviate this gate check?
  if (!module_exists('locale')) {
    return array();
  }
  $toggle = 'language_toggle';
  $list = 'language_list';
  $plural = 'languages';
  $options = locale_language_list();
  $config = compact(array(
    'toggle',
    'list',
    'plural',
    'options',
  ));
  return _google_tag_variable_info_generic($config, $options);
}