You are here

function nodeactivity_token_values in Activity 6

Same name and namespace in other branches
  1. 5.4 contrib/nodeactivity/nodeactivity.module \nodeactivity_token_values()
  2. 5.3 contrib/nodeactivity/nodeactivity.module \nodeactivity_token_values()

Token module integration. Defines available default token values.

File

contrib/nodeactivity/nodeactivity.module, line 61

Code

function nodeactivity_token_values($type, $data = NULL, $options = array()) {
  if ($type == 'nodeactivity' && !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;
  }
}