fusioncharts.install in Charts 7
@author Bruno Massa http://drupal.org/user/67164
Install and unistall functions for this module
File
fusioncharts/fusioncharts.installView source
<?php
/**
* @author Bruno Massa http://drupal.org/user/67164
* @file
* Install and unistall functions for this module
*/
/**
* Implementation of hook_requirements().
*/
function fusioncharts_requirements($phase) {
$path = file_create_path() . '/fusioncharts';
if (!file_exists($path . '/MSLine.swf')) {
$requirements['charts']['title'] = t('FusionCharts');
$requirements['charts']['value'] = t('FusionCharts flash files not installed');
$requirements['charts']['severity'] = REQUIREMENT_ERROR;
$requirements['charts']['description'] = t('Put all flash files inside %dir.', array(
'%dir' => $path,
));
return $requirements;
}
}
Functions
Name | Description |
---|---|
fusioncharts_requirements | Implementation of hook_requirements(). |