Same name and namespace in other branches
  1. 2.0.x colorbox.module \colorbox_theme() 1 comment
  2. 7.x-1.x colorbox.module \colorbox_theme() 1 comment
  3. 8.x-1.x colorbox.module \colorbox_theme() 1 comment

Implements hook_theme().

File

./colorbox.module, line 21

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',
        ),
    );
}