function brightcove_cck_handler_field_video_tags::render in Brightcove Video Connect 6.2
Same name and namespace in other branches
- 6 brightcove_cck/views/brightcove_cck_handler_field_video_tags.inc \brightcove_cck_handler_field_video_tags::render()
Overrides content_handler_field_multiple::render
1 call to brightcove_cck_handler_field_video_tags::render()
1 method overrides brightcove_cck_handler_field_video_tags::render()
File
- brightcove_cck/
views/ brightcove_cck_handler_field_video_tags.inc, line 88 - The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.
Class
- brightcove_cck_handler_field_video_tags
- @file The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.
Code
function render($values) {
$value = $values->{$this->field_alias};
if (empty($value)) {
return '';
}
$video = brightcove_video_load($value);
if (!empty($video)) {
if (isset($video->{$this->bc_field})) {
$bc = _brightcove_initialize();
$tags = $bc
->tags($video->{$this->bc_field});
return join($this->options['separator'] . ' ', array_map('check_plain', $tags));
}
}
return theme('views_nodate');
}