/[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.24, Fri Aug 31 17:12:13 2007 UTC revision 1.25, Fri Aug 31 17:17:59 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_dss.module,v 1.23 2007/07/10 20:21:49 moonray Exp $  // $Id: taxonomy_dss.module,v 1.24 2007/08/31 17:12:13 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 1631  function taxonomy_dss_term_page($str_tid Line 1631  function taxonomy_dss_term_page($str_tid
1631          taxonomy_dss_set_breadcrumb($breadcrumb);          taxonomy_dss_set_breadcrumb($breadcrumb);
1632    
1633          // Add RSS feed icon          // Add RSS feed icon
1634          drupal_add_feed(url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed'), 'RSS - '. $termset->title);          if (drupal_is_front_page()) {
1635              $feed_url = url('rss.xml', NULL, NULL, TRUE);
1636              drupal_add_feed($feed_url, variable_get('site_name', 'Drupal') .' '. t('RSS'));
1637            }
1638            else {
1639              drupal_add_feed(url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed'), 'RSS - '. $termset->title);
1640            }
1641    
1642          // Add custom CSS          // Add custom CSS
1643          drupal_add_css(drupal_get_path('module', 'taxonomy_dss') .'/taxonomy_dss.css');          drupal_add_css(drupal_get_path('module', 'taxonomy_dss') .'/taxonomy_dss.css');
# Line 1640  function taxonomy_dss_term_page($str_tid Line 1646  function taxonomy_dss_term_page($str_tid
1646          return theme('taxonomy_dss_term_page', $termset);          return theme('taxonomy_dss_term_page', $termset);
1647    
1648        case 'feed':        case 'feed':
1649          if (drupal_is_front_page()) {          $term = taxonomy_get_term($termset->terms['tids'][0]);
1650            $feed_url = url('rss.xml', NULL, NULL, TRUE);  
1651            drupal_add_feed($feed_url, variable_get('site_name', 'Drupal') .' '. t('RSS'));          $channel['link'] = url('taxonomy/term/'. $str_tids .'/'. $depth, NULL, NULL, TRUE);
1652          }          $channel['title'] = variable_get('site_name', 'Drupal') .' - '. $title;
1653          else {          $channel['description'] = $term->description;
1654            $term = taxonomy_get_term($termset->terms['tids'][0]);  
1655            $result = taxonomy_select_nodes($termset->terms['tids'], $termset->terms['operator'], $depth, FALSE);
1656            $channel['link'] = url('taxonomy/term/'. $str_tids .'/'. $depth, NULL, NULL, TRUE);  
           $channel['title'] = variable_get('site_name', 'Drupal') .' - '. $title;  
           $channel['description'] = $term->description;  
   
           $result = taxonomy_select_nodes($termset->terms['tids'], $termset->terms['operator'], $depth, FALSE);  
         }  
1657          node_feed($result, $channel);          node_feed($result, $channel);
1658          break;          break;
1659    

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

  ViewVC Help
Powered by ViewVC 1.1.2