/[drupal]/contributions/modules/jquery_form/jquery_form.module
ViewVC logotype

Contents of /contributions/modules/jquery_form/jquery_form.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sun Aug 5 15:11:14 2007 UTC (2 years, 3 months ago) by wimleers
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
Initial commit. This module allows developers to make use of the jQuery Form Plugin, by a simple function call: jquery_form_add(). It requires the jQuery Update module.
1 <?php
2 // $Id$
3
4 /**
5 * All this module does, is providing a central function for adding the Form
6 * Plugin for jQuery. It ensures that the Form Plugin will be added only once
7 * per page.
8 */
9
10 function jquery_form_add() {
11 static $added;
12
13 if (!isset($added)) {
14 drupal_add_js(drupal_get_path('module', 'jquery_form') .'/jquery_form.js');
15 $added = TRUE;
16 }
17 }

  ViewVC Help
Powered by ViewVC 1.1.2