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

Contents of /contributions/modules/jcarousellite/jcarousellite.module

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


Revision 1.3 - (show annotations) (download) (as text)
Sat Mar 7 21:05:23 2009 UTC (8 months, 2 weeks ago) by owahab
Branch: MAIN
CVS Tags: DRUPAL-6--2-0-BETA1, DRUPAL-6--2-0-BETA2, DRUPAL-6--2-0-BETA3, DRUPAL-6--2-0-BETA4, DRUPAL-6--2-0-ALPHA2, HEAD
Branch point for: DRUPAL-6--2
Changes since 1.2: +2 -1 lines
File MIME type: text/x-php
Upgrading core support to 6.x, thanks to notabenem for the initial patch
1 <?php
2 // $Id: jcarousellite.module,v 1.2 2009/03/07 20:40:59 owahab Exp $
3
4 /**
5 * @file
6 * jCarousel Lite is a jQuery plugin that carries you on a carousel ride
7 * filled with images and HTML content. Put simply, you can navigate
8 * images and/or HTML in a carousel-style widget. It is super light weight,
9 * at about 2 KB in size, yet very flexible and customizable to fit most
10 * of our needs.
11 */
12
13 function jcarousellite_add($data = NULL) {
14 static $added;
15
16 if (!isset($added)) {
17 drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jcarousellite.js');
18 drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jquery.easing.js');
19 drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jquery.mousewheel.js');
20 $added = TRUE;
21 }
22 if ($data) {
23 drupal_add_js($data, 'inline', 'footer', FALSE);
24 }
25 }
26

  ViewVC Help
Powered by ViewVC 1.1.2