function _parser_common_syndication_RDF10_property in Feeds 8.2
Same name and namespace in other branches
- 6 libraries/common_syndication_parser.inc \_parser_common_syndication_RDF10_property()
- 7.2 libraries/common_syndication_parser.inc \_parser_common_syndication_RDF10_property()
- 7 libraries/common_syndication_parser.inc \_parser_common_syndication_RDF10_property()
1 call to _parser_common_syndication_RDF10_property()
File
- libraries/
common_syndication_parser.inc, line 333 - Downloading and parsing functions for Common Syndication Parser. Pillaged from FeedAPI common syndication parser.
Code
function _parser_common_syndication_RDF10_property($rdf_data, $rdf_properties = array()) {
$rdf_properties = is_array($rdf_properties) ? $rdf_properties : array_slice(func_get_args(), 1);
foreach ($rdf_properties as $rdf_property) {
if ($rdf_property && !empty($rdf_data[$rdf_property])) {
// remove empty strings
return array_filter($rdf_data[$rdf_property], 'strlen');
}
}
}