You are here

function fancybox_theme in fancyBox 6

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

Implementation of hook_theme().

File

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

Code

function fancybox_theme() {
  $theme = array();
  $base = array(
    'file' => 'fancybox.theme.inc',
  );
  $theme['imagefield_image_imagecache_fancybox'] = $base + array(
    'arguments' => array(
      'namespace' => NULL,
      'field' => NULL,
      'path' => NULL,
      'alt' => NULL,
      'title' => NULL,
      'gid' => NULL,
      'attributes' => NULL,
    ),
  );
  if (function_exists('imagecache_presets') && module_exists('imagefield')) {
    foreach (imagecache_presets() as $preset) {
      $theme['fancybox_formatter_' . $preset['presetname'] . '|fancybox'] = $base + array(
        'function' => 'theme_fancybox_formatter_imagefield',
        'arguments' => array(
          'element' => NULL,
        ),
      );
    }
  }

  /* emvideo field support */
  $theme['fancybox_formatter_emvideo_fancybox_video'] = array(
    'arguments' => array(
      'element' => NULL,
    ),
    'file' => 'fancybox.theme.inc',
  );
  $theme['fancybox_emvideo'] = array(
    'arguments' => array(
      'field' => NULL,
      'item' => NULL,
      'formatter' => NULL,
      'node' => NULL,
    ),
    'file' => 'fancybox.theme.inc',
  );
  return $theme;
}