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

Diff of /contributions/modules/jlightbox/jlightbox.module

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

revision 1.11, Wed May 6 23:57:17 2009 UTC revision 1.12, Sun Aug 2 01:49:14 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: jlightbox.module,v 1.10 2009/04/18 01:58:00 sun Exp $  // $Id: jlightbox.module,v 1.11 2009/05/06 23:57:17 sun Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 24  function jlightbox_init() { Line 24  function jlightbox_init() {
24   */   */
25  function jlightbox_add() {  function jlightbox_add() {
26    $path = drupal_get_path('module', 'jlightbox');    $path = drupal_get_path('module', 'jlightbox');
27      drupal_add_js(array('jlightbox' => array('path' => url($path, array('absolute' => TRUE)))), 'setting');
28    
29    // Theme-specific stylesheet override support.    // Theme-specific stylesheet override support.
30    // #178364: path_to_theme() invokes init_theme(), thus it must not be invoked    // #178364: path_to_theme() invokes init_theme(), thus it must not be invoked
# Line 48  function jlightbox_add() { Line 49  function jlightbox_add() {
49    }    }
50    
51    // jLightbox needs to be loaded last.    // jLightbox needs to be loaded last.
52    drupal_add_js($path .'/js/jlightbox.js');    drupal_add_js($path .'/js/jlightbox.uncompressed.js');
53  }  }
54    
55  /**  /**

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.2