You are here

function theme_mediafront_player in MediaFront 6

Same name and namespace in other branches
  1. 6.2 mediafront.module \theme_mediafront_player()
  2. 7.2 mediafront.module \theme_mediafront_player()
  3. 7 mediafront.module \theme_mediafront_player()

Implement the theme for a node media player.

1 theme call to theme_mediafront_player()
theme_mediafront_formatter_player in includes/mediafront.preset.inc
Implement the theme for the CCK fields.

File

./mediafront.module, line 78

Code

function theme_mediafront_player($node, $preset) {

  // Get the node for this player in JSON format.
  $params['nodeObj'] = mediafront_invoke_node($node, array());

  // Also set the nodeId for those who cannot just use the object.
  $params['node'] = $node->nid;

  // Nodes will never need the playlist.
  $params['disablePlaylist'] = true;

  // Return the player.
  return mediafront_get_player($preset, $params);
}