/[drupal]/contributions/modules/fooaggregator/parsers/simplexml/fa_simplexml.module
ViewVC logotype

Diff of /contributions/modules/fooaggregator/parsers/simplexml/fa_simplexml.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.12, Thu Sep 25 00:49:23 2008 UTC revision 1.1.2.13, Fri Oct 17 09:33:34 2008 UTC
# Line 1  Line 1 
1  <?php // -*-php-*-  <?php // -*-php-*-
2  /* $Id: fa_simplexml.module,v 1.1.2.11 2008/06/08 20:43:17 alaa Exp $ */  /* $Id: fa_simplexml.module,v 1.1.2.12 2008/09/25 00:49:23 alaa Exp $ */
3    
4  /**  /**
5   * Implementation of hook_fooaggregatorapi()   * Implementation of hook_fooaggregatorapi()
# Line 89  function _fa_simplexml_update_feed_info( Line 89  function _fa_simplexml_update_feed_info(
89    case 'feed' /*atom*/:    case 'feed' /*atom*/:
90      $title = (string) $xml->title;      $title = (string) $xml->title;
91      $feed_info['body'] = (string) $xml->tagline ? (string) $xml->tagline : (string) $xml->subtitle;      $feed_info['body'] = (string) $xml->tagline ? (string) $xml->tagline : (string) $xml->subtitle;
92      //fixme: check for rel => alternative  
93      $feed_info['link'] = (string) $xml->link['href'];      foreach ($xml->link as $link) {
94          if ((string) $link['rel'] == 'alternate') {
95              $feed_info['link'] = (string) $link['href'];
96              break;
97          }
98        }
99    
100      $feed_info['image_url'] = (string) $xml->icon;      $feed_info['image_url'] = (string) $xml->icon;
101      break;      break;
102    default:    default:

Legend:
Removed from v.1.1.2.12  
changed lines
  Added in v.1.1.2.13

  ViewVC Help
Powered by ViewVC 1.1.2