function emvideo_twistage_rss in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/providers/twistage.inc \emvideo_twistage_rss()
Implementation of hook_PROVIDER_rss().
File
- contrib/
emvideo/ providers/ twistage.inc, line 92 - Provide support for Twistage to the emfield.module (http://twistage.com).
Code
function emvideo_twistage_rss($item, $teaser = NULL) {
// Create the data values that are sent to the RSS feed.
if ($item['value']) {
if (!empty($item['data']['emvideo_twistage_version']) && $item['data']['emvideo_twistage_version'] == 1) {
$data = $item['data'];
}
else {
$data = emvideo_twistage_data(NULL, $item);
}
// Remove unnecessary data.
unset($data['emvideo_twistage_version']);
return $data;
}
}