function theme_brightcove_field_metadata in Brightcove Video Connect 7.4
Same name and namespace in other branches
- 7.7 brightcove_field.formatters.inc \theme_brightcove_field_metadata()
- 7.3 brightcove_field/brightcove_field.formatters.inc \theme_brightcove_field_metadata()
- 7.5 brightcove_field/brightcove_field.formatters.inc \theme_brightcove_field_metadata()
- 7.6 brightcove_field.formatters.inc \theme_brightcove_field_metadata()
Theme function to render brightcove metadata.
Parameters
$variables:
Return value
null|string
File
- brightcove_field/
brightcove_field.formatters.inc, line 113 - Formatters for video field.
Code
function theme_brightcove_field_metadata($variables) {
$output = NULL;
$elements = $variables['elements'];
$type = $elements['#brightcove_widget_type'] == BRIGHTCOVE_VIDEO_WIDGET ? 'video' : 'playlist';
if ($elements["#{$type}"]) {
$text = check_plain($elements["#{$type}"]->{$elements['#key']});
$output = "<span><strong>{$elements['#label']}:</strong> {$text}</span>";
}
return $output;
}