You are here

function js_example_menu in Examples for Developers 7

Implements hook_menu().

Related topics

File

js_example/js_example.module, line 30
Examples showing how to use some of the new JavaScript features in Drupal 7.

Code

function js_example_menu() {
  $items = array();
  $items['js_example/weights'] = array(
    'title' => 'JS Example: see weighting in action',
    'page callback' => 'js_example_js_weights',
    'access callback' => TRUE,
  );
  $items['js_example/accordion'] = array(
    'title' => 'JS Example: jQuery UI accordion',
    'page callback' => 'js_example_accordion',
    'access callback' => TRUE,
  );
  return $items;
}