You are here

function aggregator_element_end in Drupal 7

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. 6 modules/aggregator/aggregator.module \aggregator_element_end()

Performs an action when a closing tag is encountered.

Callback function used by xml_parse() within aggregator_parse_feed().

1 string reference to 'aggregator_element_end'
aggregator_parse_feed in modules/aggregator/aggregator.parser.inc
Parses a feed and stores its items.

File

modules/aggregator/aggregator.parser.inc, line 222
Parser functions for the aggregator module.

Code

function aggregator_element_end($parser, $name) {
  global $element;
  switch ($name) {
    case 'image':
    case 'textinput':
    case 'item':
    case 'entry':
    case 'info':
      $element = '';
      break;
    case 'id':
    case 'content':
      if ($element == $name) {
        $element = '';
      }
  }
}