<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Customize the Syndicate Feed Icon Block in Drupal</title>
	<atom:link href="http://www.pokhran.com/how-to-customize-the-syndicate-feed-icon-block-in-drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pokhran.com/how-to-customize-the-syndicate-feed-icon-block-in-drupal/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 16:27:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jeffrey Schrab</title>
		<link>http://www.pokhran.com/how-to-customize-the-syndicate-feed-icon-block-in-drupal/comment-page-1/#comment-876</link>
		<dc:creator>Jeffrey Schrab</dc:creator>
		<pubDate>Tue, 18 Oct 2011 19:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.expeditionpost.com/?p=264#comment-876</guid>
		<description>Drupal 7&#039;s theme_feed_icon() function is a bit different.  The following should be appropriate for D7 in your template.php file:

function phptemplate_feed_icon($variables) {
	global $base_path;
	$path = path_to_theme();
	$text = t(&#039;Subscribe to @feed-title&#039;, array(&#039;@feed-title&#039; =&gt; $variables[&#039;title&#039;]));
	if($image = theme(&#039;image&#039;, array(&#039;path&#039; =&gt; $path.&#039;/images/feed.png&#039;, &#039;width&#039; =&gt; 16, &#039;height&#039; =&gt; 16, &#039;alt&#039; =&gt; $text))) {
		return l($image, $variables[&#039;url&#039;], array(&#039;html&#039; =&gt; TRUE, &#039;attributes&#039; =&gt; array(&#039;class&#039; =&gt; array(&#039;feed-icon&#039;), &#039;title&#039; =&gt; $text)));
	} // if
} // function..phptemplate_feed_icon</description>
		<content:encoded><![CDATA[<p>Drupal 7&#8242;s theme_feed_icon() function is a bit different.  The following should be appropriate for D7 in your template.php file:</p>
<p>function phptemplate_feed_icon($variables) {<br />
	global $base_path;<br />
	$path = path_to_theme();<br />
	$text = t(&#8216;Subscribe to @feed-title&#8217;, array(&#8216;@feed-title&#8217; =&gt; $variables['title']));<br />
	if($image = theme(&#8216;image&#8217;, array(&#8216;path&#8217; =&gt; $path.&#8217;/images/feed.png&#8217;, &#8216;width&#8217; =&gt; 16, &#8216;height&#8217; =&gt; 16, &#8216;alt&#8217; =&gt; $text))) {<br />
		return l($image, $variables['url'], array(&#8216;html&#8217; =&gt; TRUE, &#8216;attributes&#8217; =&gt; array(&#8216;class&#8217; =&gt; array(&#8216;feed-icon&#8217;), &#8216;title&#8217; =&gt; $text)));<br />
	} // if<br />
} // function..phptemplate_feed_icon</p>
]]></content:encoded>
	</item>
</channel>
</rss>

