function asset_search_element_end in Asset 6
Same name and namespace in other branches
- 5.2 contrib/asset_search/asset_search.parser.inc \asset_search_element_end()
Call-back function used by the XML parser.
1 string reference to 'asset_search_element_end'
- asset_search_parse_feed in contrib/
asset_search/ asset_search.parser.inc - Parse an rss feed and return an array of items Taken from aggregator_parse_feed
File
- contrib/
asset_search/ asset_search.parser.inc, line 212 - Include file to parse RSS feeds into an array of items that will then be used as pseudo-assets.
Code
function asset_search_element_end($parser, $name) {
global $element;
switch ($name) {
case 'IMAGE':
case 'TEXTINPUT':
case 'ITEM':
case 'ENTRY':
case 'CONTENT':
case 'INFO':
$element = '';
break;
case 'ID':
if ($element == 'ID') {
$element = '';
}
}
}