function patterns_token_values in Patterns 7
Same name and namespace in other branches
- 5 patterns.module \patterns_token_values()
- 6.2 patterns.module \patterns_token_values()
- 6 patterns.module \patterns_token_values()
- 7.2 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;
}
}