You are here

function fancybox_init in fancyBox 7

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

Implementation of hook_init().

File

./fancybox.module, line 12
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);
  }
}