You are here

public function HeartbeatActivityCommentsPlugin::__construct in Heartbeat 7

__construct().

Overrides HeartbeatBasePlugin::__construct

File

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

Class

HeartbeatActivityCommentsPlugin
Class HeartbeatFlagAttachmentPlugin.

Code

public function __construct($label, $settings) {
  parent::__construct($label, $settings);
  $this->HEARTBEAT_NODE_COMMENTS_PER_PAGE = $settings['heartbeat_comments_node_count'];
  $this->HEARTBEAT_REACTIONS_PER_PAGE = $settings['heartbeat_comments_comment_count'];
  drupal_add_js(drupal_get_path('module', 'heartbeat') . '/js/autoresize.jquery.js');
  drupal_add_js(drupal_get_path('module', 'heartbeat_comments') . '/heartbeat_comments.js');
  drupal_add_js(array(
    'heartbeat_comment_post_url' => url('heartbeat/comment/post', array(
      'absolute' => TRUE,
    )),
  ), "setting");
  drupal_add_js(array(
    'heartbeat_comment_load_url' => url('heartbeat/comments/load/js', array(
      'absolute' => TRUE,
    )),
  ), "setting");
}