You are here

function colorbox_theme in Colorbox 7

Same name and namespace in other branches
  1. 8 colorbox.module \colorbox_theme()
  2. 6 colorbox.module \colorbox_theme()
  3. 7.2 colorbox.module \colorbox_theme()

Implements hook_theme().

File

./colorbox.module, line 18
A light-weight, customizable lightbox plugin for jQuery 1.3

Code

function colorbox_theme() {
  return array(
    'colorbox_imagefield' => array(
      'variables' => array(
        'image' => array(),
        'path' => NULL,
        'title' => NULL,
        'gid' => NULL,
      ),
      'file' => 'colorbox.theme.inc',
    ),
    'colorbox_insert_image' => array(
      'variables' => array(
        'item' => NULL,
        'widget' => NULL,
      ),
      'template' => 'colorbox-insert-image',
      'file' => 'colorbox.theme.inc',
    ),
    'colorbox_image_formatter' => array(
      'variables' => array(
        'item' => NULL,
        'entity_type' => NULL,
        'entity' => NULL,
        'node' => NULL,
        // Left for legacy support.
        'field' => array(),
        'display_settings' => array(),
      ),
      'file' => 'colorbox.theme.inc',
    ),
  );
}