You are here

function hook_nodejs_handlers_info in Node.js integration 7

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

Add javascript files 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, through drupal_add_js().

Return value

array An array of paths to javascript files to be included on the page.

3 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().
nodejs_watchdog_nodejs_handlers_info in nodejs_watchdog/nodejs_watchdog.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 104
API documentation for the Nodejs integration module.

Code

function hook_nodejs_handlers_info() {
  return array(
    drupal_get_path('module', 'my_nodejs_module') . '/my_nodejs_module.js',
  );
}