You are here

function brightcove_field_theme in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 7.2 brightcove_field/brightcove_field.module \brightcove_field_theme()
  2. 7.4 brightcove_field/brightcove_field.module \brightcove_field_theme()
  3. 7.5 brightcove_field/brightcove_field.module \brightcove_field_theme()

Implementation of hook_theme().

Parameters

$existing:

$type:

$theme:

$path:

Return value

array

File

brightcove_field/brightcove_field.module, line 982
Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.

Code

function brightcove_field_theme($existing, $type, $theme, $path) {
  $theme = array(
    // Brightcove image field formatter theme function.
    'brightcove_field_image' => array(
      'render element' => 'elements',
      'file' => 'brightcove_field.formatters.inc',
    ),
    // Brightcove metadata formatter theme function.
    'brightcove_field_metadata' => array(
      'render element' => 'elements',
      'file' => 'brightcove_field.formatters.inc',
    ),
    // The media browser form theme function.
    'brightcove_field_browser' => array(
      'variables' => array(
        'element' => NULL,
      ),
    ),
    // The default formatter of the brightcove field.
    'brightcove_field_formatter_default' => array(
      'variables' => array(
        'type' => 'brightcove',
        'element' => NULL,
        'instance' => array(),
        'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
        'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
      ),
      'file' => 'brightcove_field.formatters.inc',
    ),
    'brightcove_field_dialog' => array(
      'variables' => array(
        'output' => NULL,
        'video_id' => NULL,
        'video_width' => NULL,
        'video_height' => NULL,
        'dialog_width' => NULL,
        'dialog_height' => NULL,
        'destination' => NULL,
        'image_field' => NULL,
        'field_name' => NULL,
        'entity_type' => NULL,
        'style' => NULL,
      ),
      'template' => 'brightcove-field-dialog',
      'pattern' => 'brightcove_field_dialog__',
    ),
    'brightcove_field_browse_button' => array(
      'variables' => array(
        'element' => NULL,
      ),
      'function' => 'theme_brightcove_field_browse_button',
      'file' => 'theme.inc',
    ),
    'brightcove_field_browse_item' => array(
      'variables' => array(
        'item' => NULL,
      ),
      'file' => 'theme.inc',
    ),
    'brightcove_field_browse_items' => array(
      'variables' => array(
        'item' => NULL,
      ),
      'file' => 'theme.inc',
    ),
    'brightcove_field_embed' => array(
      'variables' => array(
        'type' => 'brightcove',
        'player' => NULL,
        'brightcove_id' => NULL,
        'params' => array(),
        'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
        'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
      ),
      'template' => 'brightcove-field-player',
      'file' => 'theme.inc',
    ),
  );
  return $theme;
}