You are here

function d3_detect_library_info in d3.js 7

Library post-detect callback to process info files before caching.

See also

libraries_detect()

libraries_load()

1 string reference to 'd3_detect_library_info'
d3_libraries_info_alter in ./d3.module
Implements hook_libraries_info_alter().

File

./d3.module, line 185
D3 module file for creating visualizations with d3.js.

Code

function d3_detect_library_info(&$library, $version = NULL, $variant = NULL) {
  $handlers = d3_get_library_info_handlers_info();
  foreach ($handlers as $type => $info) {
    $handler = d3_get_library_info_handler($type);
    $handler
      ->setLibrary($library);
    $handler->processor
      ->process();
  }

  // Cycle through d3 libraries and process their info files.
}