You are here

public function HeartbeatBasePlugin::getAttachments in Heartbeat 7

getAttachments().

Parameters

$template: The Heartbeat Template

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

2 methods override HeartbeatBasePlugin::getAttachments()
HeartbeatActivityCommentsPlugin::getAttachments in modules/heartbeat_comments/plugins/activitycomments.inc
getAttachments().
HeartbeatFlagAttachmentPlugin::getAttachments in modules/heartbeat_plugins/plugins/flagattachment.inc
getAttachments().

File

modules/heartbeat_plugins/includes/heartbeat_plugin.inc, line 177

Class

HeartbeatBasePlugin
abstract class HeartbeatBasePlugin.

Code

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