You are here

function views_bookmarkactivity_activity_info in Activity 5.3

Same name and namespace in other branches
  1. 5.4 contrib/views_bookmarkactivity/views_bookmarkactivity.module \views_bookmarkactivity_activity_info()
  2. 5.2 contrib/views_bookmarkactivity.module \views_bookmarkactivity_activity_info()

Activity definition file

This defines what hooks activity module should use

File

contrib/views_bookmarkactivity/views_bookmarkactivity.module, line 8

Code

function views_bookmarkactivity_activity_info() {
  $types = views_bookmark_get_bookmarks();
  foreach ($types as $type) {
    $token_types[$type->title] = $type->title;
  }
  return array(
    'ops' => array(
      'mark' => t('Mark'),
      'unmark' => t('Unmark'),
    ),
    'types' => $token_types,
    'roles' => array(
      'author' => array(
        '#name' => t('Author'),
        '#description' => t('The person who bookmarked the node.'),
        '#default' => t('[author] [operation]ed the [node-type] [node-title-link]'),
      ),
      'all' => array(
        '#name' => t('All'),
        '#description' => t('The general public.'),
        '#default' => t('[author] [operation]ed the [node-type] [node-title-link]'),
      ),
    ),
  );
}