You are here

function brightcove_cck_theme in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove_cck/brightcove_cck.module \brightcove_cck_theme()

Implementation of hook_theme().

File

brightcove_cck/brightcove_cck.module, line 495
Brightcove CCK module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.

Code

function brightcove_cck_theme() {
  $theme = array(
    'brightcove_cck_browser' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'brightcove_cck_formatter_default' => array(
      'arguments' => array(
        'element',
      ),
      'file' => 'brightcove_cck.formatters.inc',
    ),
    'brightcove_cck_player' => array(
      'arguments' => array(
        'player' => NULL,
        'video_id' => NULL,
      ),
      'template' => 'brightcove-cck-player',
      'pattern' => 'brightcove-cck-player',
    ),
    'brightcove_cck_lightbox2' => array(
      'arguments' => array(
        'output' => NULL,
        'video_id' => NULL,
        'video_width' => NULL,
        'video_height' => NULL,
        'lightbox2_width' => NULL,
        'lightbox2_height' => NULL,
        'destination' => NULL,
        'image_field' => NULL,
        'field_name' => NULL,
        'type_name' => NULL,
        'preset' => NULL,
      ),
      'template' => 'brightcove-cck-lightbox2',
      'pattern' => 'brightcove_cck_lightbox2__',
      'preprocess functions' => array(
        'template_preprocess_brightcove_cck_lightbox2',
      ),
    ),
    'brightcove_cck_node_link' => array(
      'arguments' => array(
        'output' => NULL,
        'video_id' => NULL,
        'destination' => NULL,
        'image_field' => NULL,
        'field_name' => NULL,
        'type_name' => NULL,
        'preset' => NULL,
      ),
      'template' => 'brightcove-cck-node-link',
      'pattern' => 'brightcove_cck_node_link__',
      'preprocess functions' => array(
        'template_preprocess_brightcove_cck_node_link',
      ),
    ),
    'brightcove_cck_node_image' => array(
      'arguments' => array(
        'output' => NULL,
        'video_id' => NULL,
        'nid' => NULL,
        'image_field' => NULL,
        'field_name' => NULL,
        'type_name' => NULL,
      ),
      'template' => 'brightcove-cck-node-image',
      'pattern' => 'brightcove_cck_node_image__',
      'preprocess functions' => array(
        'template_preprocess_brightcove_cck_node_image',
      ),
    ),
    'brightcove_cck_lightbox2_imagecache' => array(
      'arguments' => array(
        'output' => NULL,
        'video_id' => NULL,
        'video_width' => NULL,
        'video_height' => NULL,
        'lightbox2_width' => NULL,
        'lightbox2_height' => NULL,
        'destination' => NULL,
        'image_field' => NULL,
        'field_name' => NULL,
        'type_name' => NULL,
      ),
      'template' => 'brightcove-cck-lightbox2-imagecache',
      'pattern' => 'brightcove_cck_lightbox2_imagecache__',
      'preprocess functions' => array(
        'template_preprocess_brightcove_cck_lightbox2_imagecache',
      ),
    ),
    'brightcove_cck_browse_button' => array(
      'arguments' => array(
        'element' => NULL,
      ),
      'function' => 'theme_brightcove_cck_browse_button',
      'file' => 'theme.inc',
    ),
    'brightcove_cck_browse_item' => array(
      'arguments' => array(
        'item' => NULL,
      ),
      'file' => 'theme.inc',
    ),
    'brightcove_cck_browse_items' => array(
      'arguments' => array(
        'item' => NULL,
      ),
      'file' => 'theme.inc',
    ),
    'brightcove_cck_embed' => array(
      'arguments' => array(
        'type' => NULL,
        'player' => NULL,
        'player_key' => NULL,
        'video_id' => NULL,
        'params' => NULL,
      ),
      'function' => 'theme_brightcove_cck_embed',
      'file' => 'theme.inc',
    ),
  );
  $theme['brightcove_cck_formatter_node_link_thumbnailURL'] = array(
    'arguments' => array(
      'element' => NULL,
      'image' => NULL,
      'preset' => NULL,
    ),
    'function' => 'theme_brightcove_cck_node_link',
    'file' => 'brightcove_cck.formatters.inc',
  );
  $theme['brightcove_cck_formatter_node_link_videoStillURL'] = array(
    'arguments' => array(
      'element' => NULL,
      'image' => NULL,
      'preset' => NULL,
    ),
    'function' => 'theme_brightcove_cck_node_link',
    'file' => 'brightcove_cck.formatters.inc',
  );
  $theme['brightcove_cck_formatter_node_image_thumbnailURL'] = array(
    'arguments' => array(
      'element' => NULL,
      'image' => NULL,
      'preset' => NULL,
    ),
    'function' => 'theme_brightcove_cck_node_image',
    'file' => 'brightcove_cck.formatters.inc',
  );
  $theme['brightcove_cck_formatter_node_image_videoStillURL'] = array(
    'arguments' => array(
      'element' => NULL,
      'image' => NULL,
      'preset' => NULL,
    ),
    'function' => 'theme_brightcove_cck_node_image',
    'file' => 'brightcove_cck.formatters.inc',
  );
  if (module_exists('lightbox2')) {
    $theme['brightcove_cck_formatter_lightbox2_player_thumbnailURL'] = array(
      'arguments' => array(
        'element' => NULL,
        'image' => NULL,
        'preset' => NULL,
      ),
      'function' => 'theme_brightcove_cck_lightbox2_player',
      'file' => 'brightcove_cck.formatters.inc',
    );
    $theme['brightcove_cck_formatter_lightbox2_player_videoStillURL'] = array(
      'arguments' => array(
        'element' => NULL,
        'image' => NULL,
        'preset' => NULL,
      ),
      'function' => 'theme_brightcove_cck_lightbox2_player',
      'file' => 'brightcove_cck.formatters.inc',
    );
  }
  if (module_exists('imagecache')) {
    $presets = imagecache_presets();
    foreach ($presets as $preset_id => $preset) {
      if (module_exists('lightbox2')) {
        $theme['brightcove_cck_formatter_lightbox2_imagecache_' . $preset['presetname'] . '__thumbnailURL'] = array(
          'arguments' => array(
            'element',
          ),
          'function' => 'theme_brightcove_cck_lightbox2_imagecache',
          'file' => 'brightcove_cck.formatters.inc',
        );
        $theme['brightcove_cck_formatter_lightbox2_imagecache_' . $preset['presetname'] . '__videoStillURL'] = array(
          'arguments' => array(
            'element',
          ),
          'function' => 'theme_brightcove_cck_lightbox2_imagecache',
          'file' => 'brightcove_cck.formatters.inc',
        );
      }
      $theme['brightcove_cck_formatter_node_link_imagecache_' . $preset['presetname'] . '__thumbnailURL'] = array(
        'arguments' => array(
          'element',
        ),
        'function' => 'theme_brightcove_cck_node_link_imagecache',
        'file' => 'brightcove_cck.formatters.inc',
      );
      $theme['brightcove_cck_formatter_node_link_imagecache_' . $preset['presetname'] . '__videoStillURL'] = array(
        'arguments' => array(
          'element',
        ),
        'function' => 'theme_brightcove_cck_node_link_imagecache',
        'file' => 'brightcove_cck.formatters.inc',
      );
      $theme['brightcove_cck_formatter_node_image_imagecache_' . $preset['presetname'] . '__thumbnailURL'] = array(
        'arguments' => array(
          'element',
        ),
        'function' => 'theme_brightcove_cck_node_image_imagecache',
        'file' => 'brightcove_cck.formatters.inc',
      );
      $theme['brightcove_cck_formatter_node_image_imagecache_' . $preset['presetname'] . '__videoStillURL'] = array(
        'arguments' => array(
          'element',
        ),
        'function' => 'theme_brightcove_cck_node_image_imagecache',
        'file' => 'brightcove_cck.formatters.inc',
      );
    }
  }
  return $theme;
}