function d3_libraries_info_file_paths in d3.js 7
Implements hook_libraries_info_file_paths().
File
- ./
d3.module, line 158 - D3 module file for creating visualizations with d3.js.
Code
function d3_libraries_info_file_paths() {
// Get all library directories.
$libraries = libraries_get_libraries();
$paths = array();
// Output an array of paths to check for.
foreach ($libraries as $path) {
$paths[] = $path;
}
// Load the directory where the d3 example libraries are.
$example_path = drupal_get_path('module', 'd3') . '/libraries/';
// Add these to the search directories for libraries.
foreach (d3_default_libraries() as $example) {
$paths[] = $example_path . $example;
}
return $paths;
}