function _google_tag_variable_info_internal in GoogleTagManager 7.2
Same name and namespace in other branches
- 7 includes/variable.inc \_google_tag_variable_info_internal()
Implements hook_variable_info().
File
- includes/
variable.inc, line 439 - Contains the variable definitions.
Code
function _google_tag_variable_info_internal($options) {
// Gather data.
$args = array(
'@path' => 'admin/config/system/variable/realm/language/configure',
);
$markup = t('<strong>NOTE</strong>: If using the dataLayer module to insert these values and variable realms are in effect, then <a href="@path">check this item to be realm-specific</a>.', $args, $options);
// Build variables.
$visible = module_exists('datalayer') && module_exists('variable_realm');
$variables['data_layer_classes'] = array(
'type' => 'properties',
'title' => t('Data layer classes', array(), $options),
'description' => t('The associative array of data layer classes. <strong>NOTE: If using the dataLayer module to insert these values and variable realms are in effect, then check this item.</strong>', array(), $options),
'default' => array(),
'element' => array(
// '#prefix' => $visible ? '<span>' . $markup . '</span>' : '',
'#attributes' => array(
'class' => array(
'element-invisible',
),
),
),
);
return $variables;
}