You are here

function fancybox_insert_styles in fancyBox 6

Same name and namespace in other branches
  1. 7.2 fancybox.module \fancybox_insert_styles()

Implementation of hook_insert_styles().

File

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

Code

function fancybox_insert_styles() {
  $insert_styles = array();
  if (module_exists('imagecache')) {
    foreach (imagecache_presets() as $preset) {
      $insert_styles[$preset['presetname'] . '|fancybox'] = array(
        'label' => t('Fancybox: @preset image', array(
          '@preset' => $preset['presetname'],
        )),
      );
    }
  }
  return $insert_styles;
}