You are here

analytics_dashboard.install in Google Chart Tools 7

Install routine for dashboard

File

analytics_dashboard/analytics_dashboard.install
View source
<?php

/**
 * @file
 * Install routine for dashboard
 */

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

/**
 * Implements hook_uninstall().
 */
function analytics_dashboard_uninstall() {
  variable_del('chart_visible');
}