You are here

public static function Analytic::listEvents in Analytics 6

Static function to list all known events.

Return value

unknown_type

2 calls to Analytic::listEvents()
analytics_analytic_load in ./analytics.module
Helper function for loading menu items.
analytics_reports_overview in modules/analytics_ui/analytics_ui.admin.inc
Page callback for analytics overview page.

File

includes/analytic.inc, line 239
Class definition for analytics.

Class

Analytic
@file Class definition for analytics.

Code

public static function listEvents() {
  $result = db_select('analytics_events', 'ae')
    ->fields('ae')
    ->execute();
  $events = array();
  foreach ($result as $item) {
    $events[$item->id] = $item->event_name;
  }
  return $events;
}