You are here

function analytics_dashboard_install in Google Chart Tools 7

Implements hook_install().

File

analytics_dashboard/analytics_dashboard.install, line 9
Install routine for dashboard

Code

function analytics_dashboard_install() {
  $charts = analytics_dashboard_get_charts();
  foreach ($charts as $chart) {
    $default[] = $chart['id'];
  }
  variable_set('chart_visible', $default);
}