Example: JavaScript

  1. drupal
    1. 8
    2. 7

Examples using Drupal 7's built-in JavaScript.

Functions & methods

NameDescription
js_example_accordionjs_example_accordion implementation.
js_example_js_weightsjs_example_weights implementation.
js_example_menuImplements hook_menu().
js_example_themeImplements hook_theme().

examples/js_example/js_example.module, line 8