function heartbeat_comments_heartbeat_attachments in Heartbeat 6.4
Implementation of hook_heartbeat_attachments().
Parameters
$message: HeartbeatActivity object
Return value
unknown_type
File
- modules/
heartbeat_comments/ heartbeat_comments.module, line 295 - heartbeat_comments.module Heartbeat comments can come with two possible
Code
function heartbeat_comments_heartbeat_attachments($message = NULL) {
return array(
'heartbeat_comments' => array(
'#type' => 'checkbox',
'#default_value' => isset($message->attachments['heartbeat_comments']) ? $message->attachments['heartbeat_comments'] : 0,
'#title' => t('Add heartbeat react field to this message'),
'#weight' => 20,
),
'comment_comments' => array(
'#type' => 'checkbox',
'#default_value' => isset($message->attachments['comment_comments']) ? $message->attachments['comment_comments'] : 0,
'#title' => t('Use the node comment within node contexts if available and possible'),
'#description' => t('Enabling this option will save a normal node comment when within node context(nid known). When enabled, normal reactions are <b>replaced</b> with the node comments, not appended!'),
'#weight' => 21,
),
);
}