You are here

function patterns_token_values in Patterns 5

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

Implementation of hook_token_values()

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

File

./patterns.module, line 1285
Enables extremely simple adding/removing features to your site with minimal to no configuration

Code

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