You are here

function patterns_token_values in Patterns 7.2

Same name and namespace in other branches
  1. 5 patterns.module \patterns_token_values()
  2. 6.2 patterns.module \patterns_token_values()
  3. 6 patterns.module \patterns_token_values()
  4. 7 includes/core/token.inc \patterns_token_values()

Implements hook_token_values().

@TODO If these get implementated directly into token.module, this should be removed.

File

includes/core/token.inc, line 16
Functions to related to token module. TODO: Check if we still need them

Code

function patterns_token_values($type, $object = NULL, $options = array()) {
  if ($type == 'global') {
    $path = conf_path();
    $tokens['confpath'] = $path;
    return $tokens;
  }
}