function lightbox2_init in Lightbox2 6
Same name and namespace in other branches
- 8 lightbox2.module \lightbox2_init()
- 7.2 lightbox2.module \lightbox2_init()
- 7 lightbox2.module \lightbox2_init()
Implementation of hook_init().
File
- ./
lightbox2.module, line 261 - Enables the use of lightbox2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.
Code
function lightbox2_init() {
// Insert support
if (module_exists('insert')) {
module_load_include('inc', 'lightbox2', 'lightbox2.insert');
}
if (lightbox2_exclude_these_paths() != 1) {
lightbox2_add_files();
}
}