function favorite_nodesactivity_activity_info in Activity 6
Same name and namespace in other branches
- 5.4 contrib/favorite_nodesactivity/favorite_nodesactivity.module \favorite_nodesactivity_activity_info()
Activity definition file
This defines what hooks activity module should use
File
- contrib/
favorite_nodesactivity/ favorite_nodesactivity.module, line 8
Code
function favorite_nodesactivity_activity_info() {
return array(
'ops' => array(
'add' => t('Add'),
'delete' => t('Delete'),
),
'types' => array(
'favorites' => t('Favorites'),
),
'roles' => array(
'author' => array(
'#name' => t('Author'),
'#description' => t('The person who added the node to favorites.'),
'#default' => array(
'add' => t('[author] [operation]ed the [node-type] [node-link] to [possessive] [favorites-link]'),
'delete' => t('[author] [operation]d the [node-type] [node-link] from [possessive] [favorites-link]'),
),
),
'all' => array(
'#name' => t('All'),
'#description' => t('The general public.'),
'#default' => array(
'add' => t('[author-all] [operation]ed the [node-type] [node-link] to their [favorites-link]'),
'delete' => t('[author-all] [operation]d the [node-type] [node-link] from their [favorites-link]'),
),
),
),
);
}