You are here

public function HeartbeatActivityCommentsPlugin::streamLoaded in Heartbeat 7

streamLoaded().

Overrides iHeartbeatPlugin::streamLoaded

File

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

Class

HeartbeatActivityCommentsPlugin
Class HeartbeatFlagAttachmentPlugin.

Code

public function streamLoaded(HeartbeatStream $heartbeatStream) {
  $heartbeatStream
    ->needsModal(TRUE);

  // Push the comments form/list settings to javascript.
  // We do this here as something could have been altered.
  drupal_add_js(array(
    'heartbeat_comments_order' => $this->settings['heartbeat_comments_order'],
  ), "setting");
  drupal_add_js(array(
    'heartbeat_comments_position' => $this->settings['heartbeat_comments_position'],
  ), "setting");
}