You are here

function node_activity_token_values in Activity 6.2

Implementation of hook_activity_token_values().

File

modules/node.activity.inc, line 33
Activity definition file for node.module

Code

function node_activity_token_values($type, $object = NULL, $options = array()) {
  if ($type == 'node') {
    return array(
      'activity-node-link' => l($object->title, "node/{$object->nid}"),
      'activity-node-creator-link' => theme('activity_username', $object),
    );
  }
  return array();
}