You are here

function thickbox_theme in Thickbox 6

Implementation of hook_theme().

File

./thickbox.module, line 13
Author: Fredrik Jonsson fredrik at combonet dot se The thickbox module is a simple wrapper for the jquery plugin ThickBox http://jquery.com/demo/thickbox/.

Code

function thickbox_theme() {
  $theme = array(
    'imagefield_image_imagecache_thickbox' => array(
      'arguments' => array(
        'namespace' => NULL,
        'path' => NULL,
        'alt' => NULL,
        'title' => NULL,
        'gid' => NULL,
        'attributes' => NULL,
      ),
    ),
  );
  if (module_exists('imagecache')) {
    foreach (imagecache_presets() as $preset) {
      $theme['thickbox_formatter_' . $preset['presetname'] . '][thickbox'] = array(
        'function' => 'theme_thickbox_formatter',
        'arguments' => array(
          'element' => NULL,
        ),
      );
    }
  }
  return $theme;
}