You are here

function fusioncharts_requirements in Charts 7

Implementation of hook_requirements().

File

fusioncharts/fusioncharts.install, line 11
@author Bruno Massa http://drupal.org/user/67164

Code

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;
  }
}