function friendlist_activity_heartbeat_message_info in Heartbeat 6.4
Same name and namespace in other branches
- 6.2 user_activity/modules/friendlist_activity/friendlist_activity.module \friendlist_activity_heartbeat_message_info()
- 6.3 modules/friendlist_activity/friendlist_activity.module \friendlist_activity_heartbeat_message_info()
Implementation of hook_heartbeat_message_info().
File
- modules/
friendlist_activity/ friendlist_activity.module, line 22
Code
function friendlist_activity_heartbeat_message_info() {
$info = array(
'heartbeat_become_friends' => array(
'message' => '!user1 is now !relation_type with !user2.',
'message_concat' => '!user1 is now !relation_type with %user2%.',
'message_id' => 'heartbeat_become_friends',
'concat_args' => array(
'type' => 'summary',
'group_by' => 'user-user',
'group_target' => 'user2',
'group_by_target' => 'user1',
'group_num_max' => '3',
'merge_separator' => ', ',
'merge_end_separator' => ' and ',
),
'description' => 'one user becomes friends with another.',
'perms' => '1',
'custom' => HEARTBEAT_MESSAGE_DEFAULT,
'variables' => array(
'build_mode' => 'full',
),
),
'heartbeat_add_FL_OW_relation' => array(
'message' => '!user1 has become a !relation of !user2.',
'message_concat' => '%users% have become a !relation of !user2.',
'message_id' => 'heartbeat_add_FL_OW_relation',
'concat_args' => array(
'type' => 'summary',
'group_by' => 'user-user',
'group_target' => 'user1',
'group_by_target' => 'user2',
'merge_separator' => ', ',
'merge_end_separator' => ' and ',
),
'description' => 'Adds a one way relation ',
'perms' => '1',
'custom' => HEARTBEAT_MESSAGE_DEFAULT,
'variables' => array(),
),
);
return $info;
}