function buddylistactivity_activity_info in Activity 5.4
Same name and namespace in other branches
- 5.2 contrib/buddylistactivity.module \buddylistactivity_activity_info()
- 5.3 contrib/buddylistactivity/buddylistactivity.module \buddylistactivity_activity_info()
Activity definition file
This defines what hooks activity module should use
File
- contrib/
buddylistactivity/ buddylistactivity.module, line 8
Code
function buddylistactivity_activity_info() {
return array(
'ops' => array(
'add' => t('Add'),
'remove' => t('Remove'),
'request' => t('Request'),
'deny' => t('Deny'),
'cancel' => t('Cancel'),
),
'types' => array(
'buddylist' => t('Buddylist'),
),
'roles' => array(
'author' => array(
'#name' => t('Author'),
'#description' => t('The person who performed the action.'),
'#default' => array(
'add' => t('[author] added [buddy] to [possessive] [buddylist-link]'),
'remove' => t('[author] removed [buddy] from [possessive] [buddylist-link]'),
'request' => t('[author] asked [buddy] to be added to [possessive] [buddylist-link]'),
'deny' => t('[author] denied [buddy]\'s request to be added to [possessive] [buddylist-link]'),
'cancel' => t('[author] cancelled [possessive] request to add [buddy] to [possessive] [buddylist-link]'),
),
),
// This is what corresponds to ACTIVITY_ALL
'all' => array(
'#name' => t('All'),
'#description' => t('The general public.'),
'#default' => array(
'add' => t('[author-all] added [buddy-all] to their [buddylist-link]'),
'remove' => t('[author-all] removed [buddy-all] from their [buddylist-link]'),
'request' => t('[author-all] asked [buddy-all] to be added to their [buddylist-link]'),
'deny' => t('[author-all] denied [buddy-all]\'s request to be added to their [buddylist-link]'),
'cancel' => t('[author-all] cancelled their request to add [buddy-all] to their [buddylist-link]'),
),
),
),
);
}