You are here

function token_var_token_values in Token Variable 6

Implements hook_tokens().

File

./token_var.module, line 28

Code

function token_var_token_values($type, $object = NULL, $options = array()) {
  dpm('test');
  if ($type == 'global') {
    global $conf;
    foreach ($conf as $key => $var) {
      if (!is_array($var)) {
        if (is_string($var) && empty($var)) {
          continue;
        }
        $info['variable-' . $key] = variable_get($key, '');
      }
    }
  }
  return $info;
}