You are here

function easychart_set_global_options in Easychart 7

Same name and namespace in other branches
  1. 7.2 easychart.module \easychart_set_global_options()
1 string reference to 'easychart_set_global_options'
easychart_libraries_info_alter in ./easychart.module

File

./easychart.module, line 551
Easy Chart module file.

Code

function easychart_set_global_options() {

  // Add the global options once.
  $global_options = variable_get('global_highchart_options');
  if (!empty($global_options)) {
    drupal_add_js('Highcharts.setOptions({' . $global_options . '});', array(
      'type' => 'inline',
      'scope' => 'footer',
    ));
  }
}