You are here

function fancybox_init in fancyBox 6

Same name and namespace in other branches
  1. 7.2 fancybox.module \fancybox_init()
  2. 7 fancybox.module \fancybox_init()

Implementation of hook_init().

File

./fancybox.module, line 22
Provides the Fancybox jQuery plugin for displaying images, HTML content and multimedia in an elegant box.

Code

function fancybox_init() {
  $settings = variable_get('fancybox_settings', array());
  if (!empty($settings) && fancybox_active($settings)) {
    fancybox_activate($settings);
  }
}