You are here

function heartbeat_comments_heartbeat_plugin_info in Heartbeat 7

Implementation of hook_heartbeat_plugin_info(). Built-in default plugins that can be used with heartbeat.

File

modules/heartbeat_comments/heartbeat_comments.module, line 21
Heartbeat comments for activity.

Code

function heartbeat_comments_heartbeat_plugin_info() {
  $plugin_names = array();
  $plugin_name = new HeartbeatPluginWrapper();
  $plugin_name->disabled = FALSE;

  /* Edit this to true to make a default plugin_name disabled initially */
  $plugin_name->api_version = 1;
  $plugin_name->plugin_name = 'activitycomments';
  $plugin_name->label = 'Comments on activity';
  $plugin_name->module = 'heartbeat_comments';
  $plugin_name->settings = array(
    'attachment' => 1,
    'heartbeat_comments_cache' => 0,
    'heartbeat_comments_position' => 'up',
    'heartbeat_comments_order' => 'oldest_on_top',
    'heartbeat_comments_comment_count' => '5',
    'heartbeat_comments_node_count' => '6',
    'heartbeat_comments_load_more' => 'page',
  );
  $plugin_names['activitycomments'] = $plugin_name;
  return $plugin_names;
}