You are here

function theme_mediafront_field in MediaFront 6.2

Same name and namespace in other branches
  1. 6 mediafront.module \theme_mediafront_field()
  2. 7 mediafront.module \theme_mediafront_field()

Implement the theme for a view field media player.

1 theme call to theme_mediafront_field()
mediafront_handler_field_player::render in views/mediafront_handler_field_player.inc

File

./mediafront.module, line 95

Code

function theme_mediafront_field($node, $preset) {
  $params['nodeObj'] = (array) $node;
  if (isset($node->nid)) {
    $params['node'] = $node->nid;
  }
  $params['disablePlaylist'] = true;
  return mediafront_get_player($preset, $params);
}