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