Adding new GPLed skins into the project to make an easier download
[project/jcarousel.git] / jcarousel.module
CommitLineData
d586f815
WL
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
10function 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}