You are here

function theme_mediafront_field in MediaFront 7

Same name and namespace in other branches
  1. 6.2 mediafront.module \theme_mediafront_field()
  2. 6 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
Render the field.

File

./mediafront.module, line 114

Code

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