/[drupal]/drupal/modules/node.module
ViewVC logotype

Diff of /drupal/modules/node.module

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

revision 1.641.2.21, Thu Nov 23 21:47:01 2006 UTC revision 1.641.2.22, Tue Dec 5 13:07:44 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: node.module,v 1.641.2.20 2006/11/14 10:34:08 killes Exp $  // $Id: node.module,v 1.641.2.21 2006/11/23 21:47:01 killes Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 1466  function node_feed($nodes = 0, $channel Line 1466  function node_feed($nodes = 0, $channel
1466        node_invoke_nodeapi($item, 'view', $teaser, FALSE);        node_invoke_nodeapi($item, 'view', $teaser, FALSE);
1467      }      }
1468    
1469        // Allow modules to add additional item fields
1470        $extra = node_invoke_nodeapi($item, 'rss item');
1471        $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' =>  date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false'))));
1472        foreach ($extra as $element) {
1473          if ($element['namespace']) {
1474            $namespaces = array_merge($namespaces, $element['namespace']);
1475          }
1476        }
1477    
1478      // Prepare the item description      // Prepare the item description
1479      switch ($item_length) {      switch ($item_length) {
1480        case 'fulltext':        case 'fulltext':
# Line 1482  function node_feed($nodes = 0, $channel Line 1491  function node_feed($nodes = 0, $channel
1491          break;          break;
1492      }      }
1493    
     // Allow modules to add additional item fields  
     $extra = node_invoke_nodeapi($item, 'rss item');  
     $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' =>  date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false'))));  
     foreach ($extra as $element) {  
       if ($element['namespace']) {  
         $namespaces = array_merge($namespaces, $element['namespace']);  
       }  
     }  
1494      $items .= format_rss_item($item->title, $link, $item_text, $extra);      $items .= format_rss_item($item->title, $link, $item_text, $extra);
1495    }    }
1496    

Legend:
Removed from v.1.641.2.21  
changed lines
  Added in v.1.641.2.22

  ViewVC Help
Powered by ViewVC 1.1.2