analytics_dashboard.install in Google Chart Tools 7
Install routine for dashboard
File
analytics_dashboard/analytics_dashboard.installView 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');
}
Functions
Name | Description |
---|---|
analytics_dashboard_install | Implements hook_install(). |
analytics_dashboard_uninstall | Implements hook_uninstall(). |