You are here

function brightcove_theme in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 8.2 brightcove.module \brightcove_theme()
  2. 8 brightcove.module \brightcove_theme()
  3. 6.2 brightcove.module \brightcove_theme()
  4. 6 brightcove.module \brightcove_theme()
  5. 7.7 brightcove.module \brightcove_theme()
  6. 7.2 brightcove.module \brightcove_theme()
  7. 7.3 brightcove.module \brightcove_theme()
  8. 7.4 brightcove.module \brightcove_theme()
  9. 7.5 brightcove.module \brightcove_theme()
  10. 3.x brightcove.module \brightcove_theme()

Implements of hook_theme().

File

./brightcove.module, line 2372
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function brightcove_theme() {
  return [
    'brightcove_unavailable_message' => [
      'variables' => [
        'message' => NULL,
      ],
    ],
    // Brightcove image field formatter theme function.
    'brightcove_field_image' => [
      'render element' => 'elements',
      'file' => 'brightcove_field.formatters.inc',
    ],
    // Brightcove metadata formatter theme function.
    'brightcove_field_metadata' => [
      'render element' => 'elements',
      'file' => 'brightcove_field.formatters.inc',
    ],
    // The media browser form theme function.
    'brightcove_field_browser' => [
      'variables' => [
        'element' => NULL,
      ],
    ],
    // The default formatter of the brightcove field.
    'brightcove_field_formatter_default' => [
      'variables' => [
        'type' => 'brightcove',
        'element' => NULL,
        'instance' => [],
        'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
        'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
      ],
      'file' => 'brightcove_field.formatters.inc',
    ],
    'brightcove_field_formatter_iframe' => [
      'variables' => [
        'type' => 'brightcove',
        'element' => NULL,
        'instance' => [],
        'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
        'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
      ],
      'file' => 'brightcove_field.formatters.inc',
    ],
    'brightcove_field_dialog' => [
      'variables' => [
        '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' => [
      'variables' => [
        'element' => NULL,
      ],
      'function' => 'theme_brightcove_field_browse_button',
      'file' => 'theme.inc',
    ],
    'brightcove_field_browse_item' => [
      'variables' => [
        'item' => NULL,
        'entity_type' => NULL,
        'field_name' => NULL,
        'entity_id_or_bundle' => NULL,
        'bcid' => NULL,
      ],
      'file' => 'theme.inc',
    ],
    'brightcove_field_browse_items' => [
      'variables' => [
        'items' => NULL,
        'entity_type' => NULL,
        'field_name' => NULL,
        'entity_id_or_bundle' => NULL,
        'bcid' => NULL,
      ],
      'file' => 'theme.inc',
    ],
    'brightcove_field_embed' => [
      'variables' => [
        'id' => 'brightcove-video',
        'type' => BRIGHTCOVE_EMBED_TYPE_VIDEO,
        'account_id' => NULL,
        'player_id' => NULL,
        'brightcove_id' => NULL,
        'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
        'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
        'embed' => 'default',
      ],
      'template' => 'brightcove-field-embed',
      'file' => 'theme.inc',
    ],
    'brightcove_field_embed_iframe' => [
      'variables' => [
        'iframe_url' => NULL,
        'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
        'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
      ],
      'template' => 'brightcove-field-embed-iframe',
      'file' => 'theme.inc',
    ],
    'brightcove_integration' => [
      'variables' => [
        'name' => '',
        'description' => '',
        'project' => NULL,
        'image' => NULL,
      ],
      'file' => 'theme.inc',
    ],
    'brightcove_player_preview' => [
      'variables' => [
        'preview_url' => NULL,
        'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
        'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
      ],
      'template' => 'brightcove-player-preview',
    ],
  ];
}