function comment_activity_api in Activity 7
Implements hook_activity_api().
File
- ./
activity.module, line 441 - Records Activity across the site and surfaces that to Views.
Code
function comment_activity_api() {
return array(
'api' => '3.0-alpha1',
'realms' => array(
'comment' => array(
'name' => 'Comment',
),
),
'hooks' => array(
'comment_insert' => array(
'batch' => TRUE,
'handler' => 'CommentActivityActionHandler',
'name' => 'Comment Insert',
),
),
// Move the activity hooks into a seperate file.
'file' => drupal_get_path('module', 'activity') . '/modules/comment.activity.inc',
);
}