You are here

function jquery_update_menu in jQuery Update 5.2

Same name and namespace in other branches
  1. 5 jquery_update.module \jquery_update_menu()
  2. 6.2 jquery_update.module \jquery_update_menu()
  3. 6 jquery_update.module \jquery_update_menu()
  4. 7.3 jquery_update.module \jquery_update_menu()
  5. 7.2 jquery_update.module \jquery_update_menu()

Implementation of hook_menu().

File

./jquery_update.module, line 15
This Drupal module helps with updating core jQuery. Drupal 5.x is shipped with jQuery 1.0.1. This module helps you to install a later version.

Code

function jquery_update_menu($may_cache) {
  $items = array();
  if (!$may_cache) {
    drupal_add_js(drupal_get_path('module', 'jquery_update') . '/compat.js');
  }
  return $items;
}