You are here

function colorbox_init in Colorbox 7.2

Same name and namespace in other branches
  1. 6 colorbox.module \colorbox_init()
  2. 7 colorbox.module \colorbox_init()

Implements hook_init().

File

./colorbox.module, line 55
A light-weight, customizable lightbox plugin for jQuery 1.3.

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();
  }
}