You are here

function html5_media_theme in HTML5 Media 7

Implements hook_theme

File

./html5_media.module, line 6

Code

function html5_media_theme() {
  $themes = array();

  // Create a media player theme.
  $themes['html5_player'] = array(
    'render element' => 'element',
  );

  // Register the player templates
  $info = html5_media_get_player_info();
  foreach ($info['templates'] as $name => $info) {
    $themes['html5_player_' . $name] = array(
      'template' => 'minplayer_' . $name,
      'variables' => array(
        'params' => NULL,
      ),
      'path' => $info['path'],
    );
  }
  return $themes;
}