You are here

public function HeartbeatActivityCommentsPlugin::getAttachments in Heartbeat 7

getAttachments().

Parameters

$template: The Heartbeat Template

$component_type: The type of attachment [buttons, content]

Overrides HeartbeatBasePlugin::getAttachments

File

modules/heartbeat_comments/plugins/activitycomments.inc, line 57
Defines activity comments.

Class

HeartbeatActivityCommentsPlugin
Class HeartbeatFlagAttachmentPlugin.

Code

public function getAttachments($template, $component_type) {
  return array(
    array(
      'name' => $this->settings['plugin_name'],
      'title' => t('Heartbeat Comments'),
      'enabled' => isset($template->attachments[$component_type]['enabled'][$this->settings['plugin_name']]) ? $template->attachments[$component_type]['enabled'][$this->settings['plugin_name']] : 0,
      'weight' => 2,
    ),
  );
}