You are here

function hook_nodejs_handlers_info in Node.js integration 8

Same name and namespace in other branches
  1. 7 nodejs.api.php \hook_nodejs_handlers_info()

Add libraries on pages where Nodejs is loaded.

Use this when needing more JS assets in *every* page where Nodejs is loaded, but not in cases where the assets might not always be required. For that scenario, it's better to manually load the files when required.

Return value

array An array of library names to be included on the page.

2 functions implement hook_nodejs_handlers_info()

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

nodejs_ajax_nodejs_handlers_info in nodejs_ajax/nodejs_ajax.module
Implements hook_nodejs_handlers_info().
nodejs_notify_nodejs_handlers_info in nodejs_notify/nodejs_notify.module
Implements hook_nodejs_handlers_info().
1 invocation of hook_nodejs_handlers_info()
nodejs_get_js_handlers in ./nodejs.module
Get a list of javascript handler files.

File

./nodejs.api.php, line 103
API documentation for the Nodejs integration module.

Code

function hook_nodejs_handlers_info() {
  return [
    'mymodule.node_handlers',
  ];
}