You are here

function theme_mediafront_formatter_player in MediaFront 6

Same name and namespace in other branches
  1. 6.2 includes/mediafront.preset.inc \theme_mediafront_formatter_player()

Implement the theme for the CCK fields.

1 string reference to 'theme_mediafront_formatter_player'
mediafront_preset_theme in includes/mediafront.preset.inc
Implementation of hook_theme

File

includes/mediafront.preset.inc, line 114

Code

function theme_mediafront_formatter_player($element) {

  // Extract the preset name from the formatter name.
  $preset = substr($element['#formatter'], 0, strrpos($element['#formatter'], '_'));

  // Return a node mediafront player.
  return theme('mediafront_player', $element['#node'], $preset);
}