You are here

function heartbeat_stream_config_load_all in Heartbeat 7

Load all the stream configuration objects.

Parameters

Boolean $reset: Indicates whether the stream data needs to be rebuilt.

3 calls to heartbeat_stream_config_load_all()
heartbeat_block_info in ./heartbeat.module
Implements hook_block_info().
heartbeat_menu in ./heartbeat.module
Implements hook_menu().
heartbeat_permission in ./heartbeat.module
Implements hook_permission().

File

./heartbeat.streams.inc, line 85

Code

function heartbeat_stream_config_load_all($reset = FALSE) {
  $streams =& drupal_static('heartbeat_streams');
  if (!$reset && ($object = cache_get('heartbeat_streams'))) {
    $streams = $object->data;
  }
  else {

    // Fetch the streams with ctools export.
    ctools_include('export');
    $streams = ctools_export_crud_load_all('heartbeat_streams');
    cache_set('heartbeat_streams', $streams);
  }
  return $streams;
}