You are here

function node_activity_info in Activity 5

Same name and namespace in other branches
  1. 6.2 activity.module \node_activity_info()

Activity definition file

This defines what hooks activity module should use

File

includes/node.inc, line 7

Code

function node_activity_info() {
  $types = node_get_types();
  foreach ($types as $type) {
    $token_types[$type->type] = $type->name;
  }
  return array(
    'name' => 'nodeapi',
    'module' => 'node',
    'ops' => array(
      'insert',
    ),
    'types' => $token_types,
    'tokens' => array(
      'user' => 'user who did the action',
      'user-link' => 'link to the users profile',
      'node-id' => 'id of the post',
      'node-title' => 'title of the post',
      'node-title-link' => 'link to the node',
      'node-type' => 'the type of node',
      'rating' => 'rating data (if available)',
    ),
  );
}