You are here

function friendlist_activity_heartbeat_message_info in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 modules/friendlist_activity/friendlist_activity.module \friendlist_activity_heartbeat_message_info()
  2. 6.2 user_activity/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 20

Code

function friendlist_activity_heartbeat_message_info() {
  $info = array(
    1 => array(
      'message' => '!user1 is now !relation_type with !user2.',
      'message_concat' => '!user1 is now !relation_type with %others%',
      'message_id' => 'heartbeat_become_friends',
      'message_type' => 'normal',
      'concat_args' => array(
        'type' => 'summary',
        'group_by' => 'user-user',
        'group_target' => 'others',
        'merge_separator' => ', ',
        'merge_end_separator' => ' and ',
      ),
      'module' => 'friendlist_api',
      'description' => 'one user becomes friends with another.',
      'variables' => array(
        '@user1' => '[user2:user-name-url]',
        '#relation_type' => '[rtid:name]',
        '@user2' => '[user1:user-name-url]',
      ),
    ),
  );
  return $info;
}