You are here

function hook_library_info_handlers in d3.js 7

Add custom library info handlers.

Return value

An array of new handler info. The key is important as it will define what in the library .info file is actually being handled. In the case of the example below, the handlers would search for anything in the info file with the key "views". Examples: views[version] = 3 views[fields][rows][name] = { label: Name, description: Name of the row }

  • processor: The custom library processor class.
  • controller: The custom library controller class.
  • mapping: The custom library mapping class.
1 function implements hook_library_info_handlers()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

d3_views_library_info_handlers in modules/d3_views/d3_views.module
1 invocation of hook_library_info_handlers()
d3_get_library_info_handlers_info in ./d3.module
Get information on all info handlers.

File

./d3.api.php, line 26
Describe hooks provided by the d3 module.

Code

function hook_library_info_handlers() {
  return array(
    'views' => array(
      'processor' => 'D3ViewsLibraryInfoProcessor',
      'controller' => 'D3ViewsLibraryInfoController',
      'mapping' => 'D3ViewsDataMapping',
    ),
  );
}