You are here

function colorbox_theme in Colorbox 7.2

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

Implements hook_theme().

File

./colorbox.module, line 16
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',
      'pattern' => 'colorbox_insert_image__[a-z0-9_]+',
      'file' => 'colorbox.theme.inc',
    ),
    'colorbox_image_formatter' => array(
      'variables' => array(
        'item' => NULL,
        'entity_type' => NULL,
        'entity' => NULL,
        // Left for legacy support.
        'node' => NULL,
        'field' => array(),
        'display_settings' => array(),
        'delta' => NULL,
      ),
      'file' => 'colorbox.theme.inc',
    ),
  );
}