You are here

function votingapi_activity_info in Activity 5

Activity definition file

This defines what hooks activity module should use

File

includes/votingapi.inc, line 7

Code

function votingapi_activity_info() {
  $tags = array();
  $query = db_query("SELECT DISTINCT tag FROM {votingapi_cache}");
  while ($result = db_fetch_array($query)) {
    $tags[] = $result['tag'];
  }
  return array(
    'name' => 'votingapi',
    'module' => 'votingapi',
    'ops' => array(
      'mark',
      'unmark',
    ),
    'types' => array_values($tags),
    'tokens' => array(
      'user' => 'user who done the action',
      'node-id' => 'id of what was voted upon',
      'node-title' => 'title of what was voted upon',
      'rating' => 'rating data',
    ),
  );
}