| 1 |
<?php |
<?php |
| 2 |
// $Id:$ |
// $Id: hoverintent.module,v 1.1 2008/01/24 18:54:40 aaron Exp $ |
| 3 |
|
|
| 4 |
|
/** |
| 5 |
|
* This will register the plugin with the jQ module. |
| 6 |
|
* To invoke, use jq_add('hoverIntent'); |
| 7 |
|
*/ |
| 8 |
function hoverintent_jq($op, $plugin = NULL) { |
function hoverintent_jq($op, $plugin = NULL) { |
| 9 |
switch ($op) { |
switch ($op) { |
| 10 |
case 'info': |
case 'info': |
| 26 |
break; |
break; |
| 27 |
} |
} |
| 28 |
} |
} |
| 29 |
|
|
| 30 |
|
/** |
| 31 |
|
* This adds the plugin manually, without going through jQ. |
| 32 |
|
*/ |
| 33 |
|
function hoverintent_add() { |
| 34 |
|
drupal_add_js(drupal_get_path('module', 'hoverintent') . '/js/jquery.hoverIntent.minified.js'); |
| 35 |
|
} |