You are here

function highcharttable_load_libs in HighchartTable 7

Include all required external javascript code.

Highcharts JS and HighchartTable jQuery libraries.

Parameters

$variant, string: Either NULL for the original version or 'patched' for the local version.

1 call to highcharttable_load_libs()
highcharttable_preprocess_page in ./highcharttable.module
Implements hook_preprocess_page().

File

./highcharttable.module, line 133
highcharttable.module

Code

function highcharttable_load_libs($variant) {

  // Equivalent to core's drupal_add_library('highcharttable', 'highcharts'),
  // this loads what is set up in the .libraries.info file, rather than core's
  // hook_library(). The format of the array returned is similar.
  $highcharts_lib = libraries_load('highcharts');
  if (!empty($highcharts_lib['error'])) {
    drupal_set_message($highcharts_lib['error message'], 'warning');
  }
  $highcharttable_lib = libraries_load('highcharttable', $variant);
  if (!empty($highcharttable_lib['error'])) {
    drupal_set_message($highcharttable_lib['error message'], 'warning');
  }
}