You are here

function hook_heartbeat_stream_info in Heartbeat 7

Register default heartbeat streams.

See also

hook_ctools_plugin_api.

3 functions implement hook_heartbeat_stream_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

heartbeat_defaults_heartbeat_stream_info in modules/heartbeat_defaults/heartbeat_defaults.heartbeat.inc
Implements hook_heartbeat_stream_info().
heartbeat_heartbeat_stream_info in ./heartbeat.heartbeat.inc
Implements hook_heartbeat_stream_info().
heartbeat_og_heartbeat_stream_info in modules/heartbeat_og/heartbeat_og.heartbeat.inc
Implements hook_heartbeat_stream_info().

File

./heartbeat.api.php, line 68
Hooks provided by the Heartbeat API.

Code

function hook_heartbeat_stream_info() {
  $heartbeatstreams = array();
  $heartbeatstream = new HeartbeatStreamConfig();
  $heartbeatstream->disabled = FALSE;

  /* Edit this to true to make a default heartbeatstream disabled initially */
  $heartbeatstream->api_version = 1;
  $heartbeatstream->class = 'siteactivity';
  $heartbeatstream->name = 'Site activity';
  $heartbeatstream->module = 'heartbeat_defaults';
  $heartbeatstream->title = 'Site activity';
  $heartbeatstream->path = 'streams/siteactivity.inc';
  $heartbeatstream->settings = array();
  $heartbeatstream->variables = array();
  $heartbeatstreams['siteactivity'] = $heartbeatstream;
  return $heartbeatstreams;
}