You are here

function analytics_service_load_enabled in Analytics 7

Return value

AnalyticsServiceInterface[]

2 calls to analytics_service_load_enabled()
analytics_cron in ./analytics.module
Implements hook_cron().
analytics_get_output in ./analytics.module

File

./analytics.module, line 148

Code

function analytics_service_load_enabled() {
  $results =& drupal_static(__FUNCTION__);
  if (!isset($results)) {
    $results = array();
    ctools_include('export');
    $services = ctools_export_crud_load_all('analytics_service');
    foreach ($services as $id => $service) {
      if (empty($service->disabled) && ($instance = analytics_get_service_instance($service))) {
        $results[$id] = $instance;
      }
    }
  }
  return $results;
}