function charts_google_library in Charts 7.2
Implements hook_library().
File
- modules/
charts_google/ charts_google.module, line 19
Code
function charts_google_library() {
$library['visualization'] = array(
'title' => t('Google Visualization library'),
'website' => 'https://google-developers.appspot.com/chart/',
'version' => '1.0',
'js' => array(
array(
'data' => '//www.google.com/jsapi',
'type' => 'external',
),
),
);
$library['charts_google'] = array(
'title' => t('Google Charts integration'),
'version' => '1.0',
'js' => array(
array(
'data' => drupal_get_path('module', 'charts_google') . '/charts_google.js',
'type' => 'file',
),
),
'dependencies' => array(
array(
'charts_google',
'visualization',
),
),
);
return $library;
}