aggregator_element_start

Definition

aggregator_element_start($parser, $name, $attributes)
modules/aggregator.module, line 273

Description

Call-back function used by the XML parser.

Code

<?php
function aggregator_element_start($parser, $name, $attributes) {
  global $item, $element, $tag;

  switch ($name) {
    case 'IMAGE':
    case 'TEXTINPUT':
      $element = $name;
      break;
    case 'ITEM':
      $element = $name;
      $item += 1;
  }

  $tag = $name;
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.