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

Diff of /contributions/modules/atom/atom.module

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

revision 1.16.2.6 by deekayen, Wed Dec 5 14:59:31 2007 UTC revision 1.16.2.7 by deekayen, Sat Dec 27 08:10:02 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: atom.module,v 1.16.2.5 2007/03/01 03:48:41 deekayen Exp $  // $Id: atom.module,v 1.16.2.6 2007/12/05 14:59:31 deekayen Exp $
3    
4  /**  /**
5   * Implementation of hook_help   * Implementation of hook_help
# Line 88  function atom_feed() { Line 88  function atom_feed() {
88    $feed_info['title']    = strip_tags(variable_get('site_name', 'Drupal'));    $feed_info['title']    = strip_tags(variable_get('site_name', 'Drupal'));
89    $feed_info['subtitle'] = strip_tags(variable_get('site_slogan', ''));    $feed_info['subtitle'] = strip_tags(variable_get('site_slogan', ''));
90    $feed_info['html_url'] = $base_url;    $feed_info['html_url'] = $base_url;
91    $feed_info['atom_url'] = url('atom/feed', NULL, NULL, true);    $feed_info['atom_url'] = url('atom/feed', NULL, NULL, TRUE);
92    _atom_print_feed($nodes, $feed_info);    _atom_print_feed($nodes, $feed_info);
93  }  }
94    
# Line 101  function atom_blog_feed() { Line 101  function atom_blog_feed() {
101    $feed_info = array();    $feed_info = array();
102    $feed_info['title']    = strip_tags(sprintf(t('%s blogs'), variable_get('site_name', 'Drupal')));    $feed_info['title']    = strip_tags(sprintf(t('%s blogs'), variable_get('site_name', 'Drupal')));
103    $feed_info['subtitle'] = strip_tags(variable_get('site_slogan', ''));    $feed_info['subtitle'] = strip_tags(variable_get('site_slogan', ''));
104    $feed_info['html_url'] = url('blog', NULL, NULL, true);    $feed_info['html_url'] = url('blog', NULL, NULL, TRUE);
105    $feed_info['atom_url'] = url('blog/atom/feed', NULL, NULL, true);    $feed_info['atom_url'] = url('blog/atom/feed', NULL, NULL, TRUE);
106    _atom_print_feed($nodes, $feed_info);    _atom_print_feed($nodes, $feed_info);
107  }  }
108    
# Line 119  function atom_user_blog_feed() { Line 119  function atom_user_blog_feed() {
119    
120    $feed_info = array();    $feed_info = array();
121    $feed_info['title']    = sprintf(t("%s's blog"), $user);    $feed_info['title']    = sprintf(t("%s's blog"), $user);
122    $feed_info['html_url'] = url('blog/'. arg(1), NULL, NULL, true);    $feed_info['html_url'] = url('blog/'. arg(1), NULL, NULL, TRUE);
123    $feed_info['atom_url'] = url('blog/'. arg(1) .'/atom/feed', NULL, NULL, true);    $feed_info['atom_url'] = url('blog/'. arg(1) .'/atom/feed', NULL, NULL, TRUE);
124    _atom_print_feed($nodes, $feed_info);    _atom_print_feed($nodes, $feed_info);
125  }  }
126    
# Line 139  function _atom_print_feed($nodes, $feed_ Line 139  function _atom_print_feed($nodes, $feed_
139        continue;        continue;
140      }      }
141    
142      $link = url("node/$node->nid", NULL, NULL, true);      $link = url("node/$node->nid", NULL, NULL, TRUE);
143    
144      if (node_hook($item, 'view')) {      if (node_hook($item, 'view')) {
145        node_invoke($item, 'view', TRUE, FALSE);        node_invoke($item, 'view', TRUE, FALSE);
# Line 149  function _atom_print_feed($nodes, $feed_ Line 149  function _atom_print_feed($nodes, $feed_
149      }      }
150    
151      // Allow modules to change $node->teaser before viewing.      // Allow modules to change $node->teaser before viewing.
152      node_invoke_nodeapi($item, 'view', true, false);      node_invoke_nodeapi($item, 'rss item', TRUE, FALSE);
153    
154      $output .= "  <entry>\n";      $output .= "  <entry>\n";
155      $output .= '    <title>'. check_plain(strip_tags($item->title)) ."</title>\n";      $output .= '    <title>'. check_plain(strip_tags($item->title)) ."</title>\n";

Legend:
Removed from v.1.16.2.6  
changed lines
  Added in v.1.16.2.7

  ViewVC Help
Powered by ViewVC 1.1.3