| 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 |
| 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 |
| 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 |
/** |
/** |