You are here

function aggregator_element_end in Drupal 6

Same name and namespace in other branches
  1. 4 modules/aggregator.module \aggregator_element_end()
  2. 5 modules/aggregator/aggregator.module \aggregator_element_end()
  3. 7 modules/aggregator/aggregator.parser.inc \aggregator_element_end()

Call-back function used by the XML parser.

1 string reference to 'aggregator_element_end'
aggregator_parse_feed in modules/aggregator/aggregator.module
Parse a feed and store its items.

File

modules/aggregator/aggregator.module, line 511
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function aggregator_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 = '';
      }
  }
}