You are here

function heartbeat_og_heartbeat_template_info in Heartbeat 7

Implements hook_heartbeat_template_info().

File

modules/heartbeat_og/heartbeat_og.heartbeat.inc, line 132
Bulk export of heartbeat objects generated by Bulk export module.

Code

function heartbeat_og_heartbeat_template_info() {
  $heartbeatmessagetemplates = array();

  /**
   * heartbeat_add_grouppost
   */
  $heartbeatmessagetemplate = new HeartbeatMessageTemplate();
  $heartbeatmessagetemplate->disabled = FALSE;

  /* Edit this to true to make a default heartbeatmessagetemplate disabled initially */
  $heartbeatmessagetemplate->api_version = 1;
  $heartbeatmessagetemplate->message_id = 'heartbeat_add_grouppost';
  $heartbeatmessagetemplate->description = 'User adds a group-post, save user activity';
  $heartbeatmessagetemplate->message = '!username has added !node_type !node_title in !group.';
  $heartbeatmessagetemplate->message_concat = 'username has added %node_title% in !group.';
  $heartbeatmessagetemplate->perms = 4;
  $heartbeatmessagetemplate->group_type = 'summary';
  $heartbeatmessagetemplate->concat_args = array(
    'group_by' => 'node-target',
    'group_target' => 'node_title',
    'group_by_target' => 'group',
    'group_num_max' => '3',
    'merge_separator' => ', ',
    'merge_end_separator' => ' and ',
    'roles' => array(
      2 => '2',
      1 => 0,
      3 => 0,
      4 => 0,
      5 => 0,
    ),
  );
  $heartbeatmessagetemplate->attachments = array(
    'buttons' => array(
      'weight' => array(
        'activitycomments' => '-9',
        'flagattachment:like' => '0',
      ),
      'settings' => array(
        'activitycomments' => array(
          'activitycomments_node' => 1,
        ),
      ),
      'enabled' => array(
        'activitycomments' => 'activitycomments',
        'flagattachment:like' => 0,
      ),
    ),
    'content' => array(
      'weight' => array(
        'activitycomments' => '-9',
        'flagattachment:like' => '0',
      ),
      'enabled' => array(
        'activitycomments' => 'activitycomments',
        'flagattachment:like' => 0,
      ),
    ),
  );
  $heartbeatmessagetemplates['heartbeat_add_grouppost'] = $heartbeatmessagetemplate;

  /**
   * heartbeat_become_group_member
   */
  $heartbeatmessagetemplate = new HeartbeatMessageTemplate();
  $heartbeatmessagetemplate->disabled = FALSE;

  /* Edit this to true to make a default heartbeatmessagetemplate disabled initially */
  $heartbeatmessagetemplate->api_version = 1;
  $heartbeatmessagetemplate->message_id = 'heartbeat_become_group_member';
  $heartbeatmessagetemplate->description = 'Activity of a user becoming member of a group';
  $heartbeatmessagetemplate->message = '!username became member of !group.';
  $heartbeatmessagetemplate->message_concat = '%username% just became member of !group.';
  $heartbeatmessagetemplate->perms = 4;
  $heartbeatmessagetemplate->group_type = 'summary';
  $heartbeatmessagetemplate->concat_args = array(
    'group_by' => 'node',
    'group_target' => 'username',
    'group_by_target' => 'group',
    'group_num_max' => '5',
    'merge_separator' => ', ',
    'merge_end_separator' => ' and ',
    'roles' => array(
      1 => 0,
      2 => 0,
      3 => 0,
      4 => 0,
      5 => 0,
    ),
  );
  $heartbeatmessagetemplate->variables = array(
    '!username' => '',
    '!group' => '',
  );
  $heartbeatmessagetemplate->attachments = array(
    'buttons' => array(
      'weight' => array(
        'activitycomments' => -9,
      ),
      'settings' => array(
        'activitycomments' => array(
          'activitycomments_node' => 1,
        ),
      ),
      'enabled' => array(
        'activitycomments' => 'activitycomments',
      ),
    ),
    'content' => array(
      'weight' => array(
        'activitycomments' => -9,
      ),
      'enabled' => array(
        'activitycomments' => 'activitycomments',
      ),
    ),
  );
  $heartbeatmessagetemplates['heartbeat_become_group_member'] = $heartbeatmessagetemplate;
  return $heartbeatmessagetemplates;
}