-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathactivity_contrib.module
More file actions
34 lines (33 loc) · 885 Bytes
/
activity_contrib.module
File metadata and controls
34 lines (33 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
// $Id: $
/**
* @file:
* Provides Activity integration for popular contrib modules.
*/
/**
* Implements hook_activity_api() for flag module.
*/
function flag_activity_api() {
// Figure out the activity access control realms.
$flags = flag_get_flags();
foreach ($flags as $fid => $flag) {
$realms["flag_" . $flag->fid] = $flag->title;
}
return array(
'api' => '3.0-alpha1',
'realms' => $realms,
'hooks' => array(
'flag_flag' => array(
'batch' => FALSE, // ?? I believe this can be true.
'handler' => 'FlagActivityActionHandler',
'name' => 'Flag Entity',
),
'flag_unflag' => array(
'batch' => FALSE,
'handler' => 'FlagActivityActionHandler',
'name' => 'Unflag Entity',
),
),
'file' => drupal_get_path('module', 'activity_contrib') . '/modules/flag.activity.inc',
);
}