function computed_field_token_values in Computed Field 5
Same name and namespace in other branches
- 6 computed_field.module \computed_field_token_values()
Implementation of hook_token_values()
File
- ./
computed_field.module, line 331
Code
function computed_field_token_values($type, $object = NULL, $options = array()) {
if ($type == 'field') {
$item = $object[0];
$tokens['raw'] = $item['value'];
$tokens['formatted'] = $item['view'];
return $tokens;
}
}