charts.install in Charts 7.2
Same filename and directory in other branches
Install and update functions for the Charts module.
File
charts.installView source
<?php
/**
* @file
* Install and update functions for the Charts module.
*/
/**
* Implements hook_requirements().
*/
function charts_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'runtime' && !charts_info()) {
$requirements['charts'] = array(
'title' => $t('Charts'),
'value' => $t('No Charts provider installed'),
'severity' => REQUIREMENT_ERROR,
'description' => $t('Charts core module only provides a a common set of functions. You must install a Charts provider module to create charts.'),
);
}
return $requirements;
}
/**
* Implements hook_uninstall().
*/
function charts_uninstall() {
}
Functions
Name | Description |
---|---|
charts_requirements | Implements hook_requirements(). |
charts_uninstall | Implements hook_uninstall(). |