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

Contents of /contributions/modules/jmedia/jmedia.module

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


Revision 1.2 - (show annotations) (download) (as text)
Wed Mar 26 01:52:42 2008 UTC (20 months ago) by aaron
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
File MIME type: text/x-php
jq plugin name incorrect
1 <?php
2 // $Id: jmedia.module,v 1.1 2008/03/26 01:40:22 aaron Exp $
3
4 /**
5 * The preferred method to invoke this plugin is to use the jQ module, available at http://drupal.org/project/jq
6 * and then call jq_add('jmedia'); on the pages requiring this.
7 *
8 * If you don't wish the jQ module installed, then use jmedia_add() instead.
9 */
10
11 function jmedia_jq($op, $plugin = NULL) {
12 switch ($op) {
13 case 'info':
14 return array(
15 'jmedia' => array(
16 'name' => t('jMedia'),
17 'description' => t('By Christoph Liell. jMedia is a jQuery plugin for unobtrusive, accessible and flexible multi-media embedding.'),
18 'version' => '1.01 (12.3.2007)',
19 'url' => 'http://www.contentwithstructure.com/extras/jmedia',
20 'files' => array(
21 'js' => array(
22 drupal_get_path('module', 'jmedia') .'/js/jmedia_packed.js',
23 ),
24 ),
25 ),
26 );
27 break;
28 }
29 }
30
31 function jmedia_add() {
32 static $installed = FALSE;
33
34 if (!$installed) {
35 drupal_add_js(drupal_get_path('module', 'jmedia') .'/js/jmedia_packed.js');
36 $installed = TRUE;
37 }
38 }

  ViewVC Help
Powered by ViewVC 1.1.2