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

Contents of /contributions/modules/jcarousel/jcarousel.module

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


Revision 1.2 - (show annotations) (download) (as text)
Wed Feb 11 08:10:47 2009 UTC (9 months, 1 week ago) by robloach
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-php
FILE REMOVED
Moved to DRUPAL-6--1 and DRUPAL-5.
1 <?php
2 // $$
3
4 /**
5 * All this module does, is providing a central function for adding the
6 * jCarousel plugin for jQuery. It ensures that the jCarousel will be added
7 * only once per page.
8 */
9
10 function jcarousel_add($skin = 'tango') {
11 static $added;
12
13 if (!isset($added)) {
14 drupal_add_js(drupal_get_path('module', 'jcarousel') .'/jcarousel.js');
15 drupal_add_css(drupal_get_path('module', 'jcarousel') .'/jcarousel.css');
16 if ($skin) {
17 drupal_add_css(drupal_get_path('module', 'jcarousel') ."/skins/$skin/skin.css");
18 }
19 $added = TRUE;
20 }
21 }

  ViewVC Help
Powered by ViewVC 1.1.2