You are here

function views_bookmark_activity_info in Activity 5

Activity definition file

This defines what hooks activity module should use

File

includes/views_bookmark.inc, line 7

Code

function views_bookmark_activity_info() {
  $token_types = array();
  $types = views_bookmark_get_bookmarks();
  if ($types) {
    foreach ($types as $type) {
      $token_types[$type->vbid] = $type->title;
    }
  }
  return array(
    'name' => 'views_bookmark_api',
    'module' => 'views_bookmark',
    'ops' => array(
      'mark',
      'unmark',
    ),
    'types' => $token_types,
    'tokens' => array(
      'user-id' => 'user who bookmarked',
      'user-link' => 'a link to the user\'s profile',
      'node-id' => 'id of what was bookmarked',
      'node-title' => 'title of what was bookmarked',
      'node-title-link' => 'link to what was bookmarked',
      'node-type' => 'type of node that was bookmarked',
    ),
  );
}