function views_bookmarkactivity_activity_info in Activity 5.4
Same name and namespace in other branches
- 5.2 contrib/views_bookmarkactivity.module \views_bookmarkactivity_activity_info()
- 5.3 contrib/views_bookmarkactivity/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) {
$type_admin_name = preg_replace('/\\s/', '_', drupal_strtolower($type->title));
$token_types[$type_admin_name] = $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-link]'),
),
'all' => array(
'#name' => t('All'),
'#description' => t('The general public.'),
'#default' => t('[author-all] [operation]ed the [node-type] [node-link]'),
),
),
);
}