You are here

function videojs_theme in Video.js (HTML5 Video Player) 7.3

Same name and namespace in other branches
  1. 8 videojs.module \videojs_theme()
  2. 6.2 videojs.module \videojs_theme()
  3. 6 videojs.module \videojs_theme()
  4. 7 videojs.module \videojs_theme()
  5. 7.2 videojs.module \videojs_theme()

Implements hook_theme().

File

./videojs.module, line 34
Provides an HTML5-compatible with Flash-fallback video player.

Code

function videojs_theme() {
  return array(
    'videojs' => array(
      'variables' => array(
        'items' => NULL,
        'player_id' => NULL,
        'attributes' => NULL,
        'entity' => NULL,
        'entity_type' => NULL,
        'posterimage_style' => NULL,
      ),
      'template' => 'theme/videojs',
      'file' => 'includes/videojs.theme.inc',
    ),
    // Special theme function for use in wysiwyg editors via the media module.
    'videojs_media_wysiwyg_preview' => array(
      'variables' => array(
        'items' => NULL,
        'player_id' => NULL,
        'attributes' => NULL,
        'entity' => NULL,
        'entity_type' => NULL,
        'posterimage_style' => NULL,
      ),
      'template' => 'theme/videojs-media-wysiwyg-preview',
      'file' => 'includes/videojs.theme.inc',
    ),
  );
}