You are here

function analytics_analytic_load in Analytics 6

Helper function for loading menu items.

File

./analytics.module, line 76
Provides an API for tracking anlytics about your Drupal site.

Code

function analytics_analytic_load($event_id) {
  $events = Analytic::listEvents();
  if (in_array($event_id, array_keys($events))) {
    $event = new AnalyticData();
    $event
      ->setEventId($event_id);
    return $event;
  }
  return FALSE;
}