You are here

function easychart_libraries_info in Easychart 7.2

Same name and namespace in other branches
  1. 7.3 easychart.module \easychart_libraries_info()
  2. 7 easychart.module \easychart_libraries_info()

Implements hook_libraries_info().

For defining external libraries.

File

./easychart.module, line 294
Easychart module file.

Code

function easychart_libraries_info() {
  $libraries['highcharts'] = array(
    'name' => 'Highcharts',
    'vendor url' => 'http://www.highcharts.com',
    'download url' => 'http://www.highcharts.com/download',
    'recommended' => array(
      'version' => '4.1.9',
      // 4.1.x and up
      'uri' => 'http://code.highcharts.com/zips/Highcharts-4.1.9.zip',
    ),
    'version arguments' => array(
      'file' => 'js/highcharts.js',
      // Could be any file with version info
      'pattern' => '/Highcharts JS v(\\d\\.\\d\\.\\d)/',
      'lines' => 2,
    ),
    'files' => array(
      'js' => array(
        'js/highcharts.js',
        'js/highcharts-3d.js',
        'js/highcharts-more.js',
        'js/modules/data.js',
        'js/modules/funnel.js',
        'js/modules/heatmap.js',
        'js/modules/no-data-to-display.js',
        'js/modules/solid-gauge.js',
        'js/modules/treemap.js',
        'js/modules/exporting.js',
      ),
    ),
  );
  $libraries['easychart'] = array(
    'name' => 'Easychart',
    'vendor url' => 'http://www.easychart.org',
    'download url' => '',
    'recommended' => array(
      'version' => '2.2.2',
      'uri' => 'https://api.github.com/repos/bestuurszaken/easychart/tarball/v2.2.2',
    ),
    'version arguments' => array(
      'file' => 'scripts/jquery.easychart.js',
      // Could be any file with version info
      'pattern' => '/Easychart JS v(\\d\\.\\d\\.\\d)/',
      'lines' => 2,
    ),
    'files' => array(
      'js' => array(
        'scripts/utils/jscolor/jscolor.js',
        'scripts/utils/opentip.min.js',
        'scripts/utils/papaparse.min.js',
        'scripts/utils/highchartsConfigurationOptions.js',
        'scripts/jquery.easychart.helper.js',
        'scripts/jquery.easychart.js',
      ),
      'css' => array(
        'styles/opentip.css',
        'styles/screen.css',
      ),
    ),
  );
  return $libraries;
}