You are here

function _google_tag_variable_info_path in GoogleTagManager 7.2

Same name and namespace in other branches
  1. 7 includes/variable.inc \_google_tag_variable_info_path()

Implements hook_variable_info().

File

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

Code

function _google_tag_variable_info_path($options) {
  $args = array(
    '%node' => '/node',
    '%user-wildcard' => '/user/*',
    '%front' => '<front>',
  );
  $description = t('Enter one relative path per line using the "*" character as a wildcard. Example paths are: "%node" for the node page, "%user-wildcard" for each individual user, and "%front" for the front page.', $args, $options);
  $default = GOOGLE_TAG_PATHS;
  $rows = 10;
  $toggle = 'path_toggle';
  $list = 'path_list';
  $plural = 'paths';
  $adjective = 'listed';
  $config = compact(array(
    'toggle',
    'list',
    'plural',
    'adjective',
    'description',
    'default',
    'rows',
  ));
  return _google_tag_variable_info_generic($config, $options);
}