function theme_mediafront_formatter_player in MediaFront 6.2
Same name and namespace in other branches
- 6 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);
}