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

Diff of /contributions/modules/hoverintent/hoverintent.module

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

revision 1.1, Thu Jan 24 18:54:40 2008 UTC revision 1.2, Wed Aug 27 14:41:03 2008 UTC
# Line 1  Line 1 
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':
# Line 22  function hoverintent_jq($op, $plugin = N Line 26  function hoverintent_jq($op, $plugin = N
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    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2