| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_dss.module,v 1.22 2007/07/02 14:39:21 moonray Exp $ |
// $Id: taxonomy_dss.module,v 1.23 2007/07/10 20:21:49 moonray Exp $ |
| 3 |
|
|
| 4 |
/* Required patch to core (can we find a module specific workaround?): |
/* Required patch to core (can we find a module specific workaround?): |
| 5 |
|
|
| 1640 |
return theme('taxonomy_dss_term_page', $termset); |
return theme('taxonomy_dss_term_page', $termset); |
| 1641 |
|
|
| 1642 |
case 'feed': |
case 'feed': |
| 1643 |
$term = taxonomy_get_term($termset->terms['tids'][0]); |
if (drupal_is_front_page()) { |
| 1644 |
|
$feed_url = url('rss.xml', NULL, NULL, TRUE); |
| 1645 |
$channel['link'] = url('taxonomy/term/'. $str_tids .'/'. $depth, NULL, NULL, TRUE); |
drupal_add_feed($feed_url, variable_get('site_name', 'Drupal') .' '. t('RSS')); |
| 1646 |
$channel['title'] = variable_get('site_name', 'Drupal') .' - '. $title; |
} |
| 1647 |
$channel['description'] = $term->description; |
else { |
| 1648 |
|
$term = taxonomy_get_term($termset->terms['tids'][0]); |
| 1649 |
$result = taxonomy_select_nodes($termset->terms['tids'], $termset->terms['operator'], $depth, FALSE); |
|
| 1650 |
|
$channel['link'] = url('taxonomy/term/'. $str_tids .'/'. $depth, NULL, NULL, TRUE); |
| 1651 |
|
$channel['title'] = variable_get('site_name', 'Drupal') .' - '. $title; |
| 1652 |
|
$channel['description'] = $term->description; |
| 1653 |
|
|
| 1654 |
|
$result = taxonomy_select_nodes($termset->terms['tids'], $termset->terms['operator'], $depth, FALSE); |
| 1655 |
|
} |
| 1656 |
node_feed($result, $channel); |
node_feed($result, $channel); |
| 1657 |
break; |
break; |
| 1658 |
|
|