function useractivity_activity_info in Activity 6
Same name and namespace in other branches
- 5.4 contrib/useractivity/useractivity.module \useractivity_activity_info()
Activity definition file
This defines what hooks activity module should use
File
- contrib/
useractivity/ useractivity.module, line 8
Code
function useractivity_activity_info() {
return array(
'ops' => array(
'insert' => t('Register'),
'update' => t('Update'),
'login' => t('Login'),
'logout' => t('Logout'),
'view' => t('View'),
),
'types' => array(
'user' => t('User'),
),
'roles' => array(
'author' => array(
'#name' => t('Author'),
'#description' => t('The person creating user activity.'),
'#default' => array(
'login' => '[author] logged in to [site-name]',
'logout' => '[author] logged off of [site-name]',
'insert' => '[author] created a new account on [site-name]',
'update' => '[author] updated [possessive] profile',
'view' => '[author] viewed [target-profile] profile',
),
),
'all' => array(
'#name' => t('All'),
'#description' => t('The general public.'),
'#default' => array(
'login' => '[author-all] logged in to [site-name]',
'logout' => '[author-all] logged off of [site-name]',
'insert' => '[author-all] created a new account on [site-name]',
'update' => '[author-all] updated their profile',
'view' => '[author-all] viewed [target-profile] profile',
),
),
),
);
}