Parent Directory
|
Revision Log
|
Revision Graph
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 |