<?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"
	>
<channel>
	<title>Comments on: Customize links menu in Drupal</title>
	<atom:link href="http://chirale.wordpress.com/2008/02/29/customize-links-menu-in-drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://chirale.wordpress.com/2008/02/29/customize-links-menu-in-drupal/</link>
	<description>watashi no yume...</description>
	<pubDate>Sun, 20 Jul 2008 02:23:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Diego Cortassa</title>
		<link>http://chirale.wordpress.com/2008/02/29/customize-links-menu-in-drupal/#comment-121</link>
		<dc:creator>Diego Cortassa</dc:creator>
		<pubDate>Fri, 27 Jun 2008 01:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://chirale.wordpress.com/?p=48#comment-121</guid>
		<description>Thanks, Great tip!
I'm using this technique in a site I'm developing on Drupal5.

I found a simple way to change image depending on the active link too, here is a piece of my code form "theme_primarylinks" function (I ave a PrimaryLink folder in my images in there I have a menuname.png image and a menunameActive.png image):

---------------------------------------------
      // Initialize fragment and query variables.
      $link['query'] = isset($link['query']) ? $link['query'] : NULL;
      $link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL;

      if (isset($link['href'])) {
        $linkactive = "";
        // should this button be active?
        if(substr($link['attributes']['class'], -6) == "active" ) { $linkactive = "Active";}
        // if an active image exixts use it!
        if(file_exists("/opt/lampp/htdocs/" . path_to_subtheme() . "/images/PrimaryLinks/" . $link['title'] . $linkactive . ".png")) {

        $output .= l("",
                     $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html = TRUE);


        }
        else {
          $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html);
        }
      }
...
-------------------------------------------------------------</description>
		<content:encoded><![CDATA[<p>Thanks, Great tip!<br />
I&#8217;m using this technique in a site I&#8217;m developing on Drupal5.</p>
<p>I found a simple way to change image depending on the active link too, here is a piece of my code form &#8220;theme_primarylinks&#8221; function (I ave a PrimaryLink folder in my images in there I have a menuname.png image and a menunameActive.png image):</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
      // Initialize fragment and query variables.<br />
      $link['query'] = isset($link['query']) ? $link['query'] : NULL;<br />
      $link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL;</p>
<p>      if (isset($link['href'])) {<br />
        $linkactive = &#8220;&#8221;;<br />
        // should this button be active?<br />
        if(substr($link['attributes']['class'], -6) == &#8220;active&#8221; ) { $linkactive = &#8220;Active&#8221;;}<br />
        // if an active image exixts use it!<br />
        if(file_exists(&#8221;/opt/lampp/htdocs/&#8221; . path_to_subtheme() . &#8220;/images/PrimaryLinks/&#8221; . $link['title'] . $linkactive . &#8220;.png&#8221;)) {</p>
<p>        $output .= l(&#8221;",<br />
                     $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html = TRUE);</p>
<p>        }<br />
        else {<br />
          $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html);<br />
        }<br />
      }<br />
&#8230;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://chirale.wordpress.com/2008/02/29/customize-links-menu-in-drupal/#comment-120</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Wed, 25 Jun 2008 14:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://chirale.wordpress.com/?p=48#comment-120</guid>
		<description>Thanks, mate!
That really helped me out! =)</description>
		<content:encoded><![CDATA[<p>Thanks, mate!<br />
That really helped me out! =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gajendra Singh</title>
		<link>http://chirale.wordpress.com/2008/02/29/customize-links-menu-in-drupal/#comment-53</link>
		<dc:creator>Gajendra Singh</dc:creator>
		<pubDate>Tue, 11 Mar 2008 08:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://chirale.wordpress.com/?p=48#comment-53</guid>
		<description>thanks lot for providing help to customize drupal primary links</description>
		<content:encoded><![CDATA[<p>thanks lot for providing help to customize drupal primary links</p>
]]></content:encoded>
	</item>
</channel>
</rss>
