<?php
// $Id: jquery47.module,v 1.1 2006/11/06 22:03:14 mfredrickson Exp $

/**
 * @file
 * Adds the jQuery library for 4.7 modules. You must rename your calls to $()
 * to JQ()
 */

/**
 * Implementation of hook_help().
 */
function jquery47_help($section) {
  switch ($section) {
    case 'admin/modules#description':
      return t('Include an edited version of the jQuery library for Drupal 4.7');
  }
}

/**
 * Use this function to include your own jQuery dependent JavaScript files.
 * Remember, you must translate $('...') into JQ('...') in your files.
 */
function jquery47_add_js($file) {
  $jquery = drupal_get_path('module', 'jquery47') . '/jquery-modified-compressed.js';
  drupal_add_js($jquery);
  drupal_add_js($file);
}
