| 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 |
| 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': |
| 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 |
|
|