function ogactivity_token_values in Activity 6
Same name and namespace in other branches
- 5.4 contrib/ogactivity/ogactivity.module \ogactivity_token_values()
Token module integration. Defines available default token values.
File
- contrib/
ogactivity/ ogactivity.module, line 65
Code
function ogactivity_token_values($type, $data = NULL, $options = array()) {
if ($type == 'ogactivity' && !empty($data)) {
$data['node-type'] = theme('activity_node_type', $data['node-type']);
$data['node-link'] = l($data['node-title'], 'node/' . $data['node-id']);
return $data;
}
}