/[drupal]/contributions/modules/taxonomy_dss/taxonomy_dss.module
ViewVC logotype

Diff of /contributions/modules/taxonomy_dss/taxonomy_dss.module

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

revision 1.23, Tue Jul 10 20:21:49 2007 UTC revision 1.24, Fri Aug 31 17:12:13 2007 UTC
# Line 1  Line 1 
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    
# Line 1640  function taxonomy_dss_term_page($str_tid Line 1640  function taxonomy_dss_term_page($str_tid
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    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.2