function user_activity_api in Activity 7
Implements hook_activity_api().
File
- ./
activity.module, line 464 - Records Activity across the site and surfaces that to Views.
Code
function user_activity_api() {
return array(
'api' => '3.0-alpha1',
'hooks' => array(
'user_insert' => array(
'batch' => TRUE,
'handler' => 'UserActivityActionHandler',
'name' => 'User Register',
),
'user_update' => array(
'batch' => FALSE,
'handler' => 'UserActivityActionHandler',
'name' => 'User Update',
),
'user_login' => array(
'batch' => FALSE,
'handler' => 'UserActivityActionHandler',
'name' => 'User Login',
),
'user_logout' => array(
'batch' => FALSE,
'handler' => 'UserActivityActionHandler',
'name' => 'User Logout',
),
),
);
}