Skip navigation
Help

aggregator_element_end

6 aggregator.module aggregator_element_end($parser, $name)
7 aggregator.parser.inc aggregator_element_end($parser, $name)

Call-back function used by the XML parser.

1 string reference to 'aggregator_element_end'

File

drupal/modules/aggregator/aggregator.parser.inc, line 224
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 = '';
      }
  }
}