You are here

function charts_highcharts_libraries_info in Charts 7.2

Implements hook_libraries_info().

Note that this is hook_libraries_info(), provided by libraries.module, rather than hook_library() provided by core.

File

modules/charts_highcharts/charts_highcharts.module, line 57
Charts module integration with Highcharts library.

Code

function charts_highcharts_libraries_info() {
  $libraries['highcharts'] = array(
    'name' => t('Highcharts'),
    'vendor url' => 'http://www.highcharts.com',
    'download url' => 'http://www.highcharts.com/download',
    'version arguments' => array(
      'file' => 'js/highcharts.js',
      // 3.x.x
      'pattern' => '/v(\\d+\\.\\d+\\.\\d)/',
      'lines' => 5,
    ),
    'files' => array(
      'js' => array(
        'js/highcharts.js',
      ),
    ),
  );
  return $libraries;
}