You are here

public function HeartbeatActivity::add_plugin in Heartbeat 7

add_plugin().

File

includes/heartbeatactivity.inc, line 453
HeartbeatActivity object Defines one heartbeat activity object.

Class

HeartbeatActivity
Class defines an activity message object

Code

public function add_plugin($pluginId, iHeartbeatPlugin $plugin) {
  if (!isset($this->additions->plugins)) {
    $this->additions->plugins = array();
  }
  $this->additions->plugins[$pluginId] = $plugin;
}