Same name and namespace in other branches
- 7.x-1.x colorbox.module \colorbox_init() 1 comment
Implements hook_init().
File
-
./
colorbox.module, line 60
Code
function colorbox_init() {
// Do not load colorbox during the Drupal installation process, e.g. if part
// of installation profiles. Only add the JavaScript and CSS on specified
// paths.
if (!drupal_installation_attempted() && _colorbox_active()) {
_colorbox_doheader();
}
}