You are here

function webform_charts_library in Webform Charts 7

Implements hook_library().

File

./webform_charts.module, line 39
Enhances the "Analyze" section of Webform nodes with customizable charts.

Code

function webform_charts_library() {
  $path = drupal_get_path('module', 'webform_charts');
  $libraries['webform_charts.admin'] = array(
    'title' => 'Webform charts admin',
    'version' => '1.x',
    'css' => array(
      $path . '/css/webform-charts.css' => array(),
    ),
    'js' => array(
      $path . '/js/webform-charts.js' => array(),
    ),
  );
  $libraries['webform_charts.admin.highcharts'] = array(
    'title' => 'Webform charts admin Highcharts-specific integration',
    'version' => '1.x',
    'js' => array(
      $path . '/js/webform-charts.highcharts.js' => array(),
    ),
  );
  return $libraries;
}