<html><body bgcolor="#FFFFFF"><div>You can also use menu_get_object(), which is arguably cleaner than using arg().<br><br><div><br></div></div><div><br>On Apr 18, 2011, at 1:02 PM, Deva <<a href="mailto:devendra.in@gmail.com">devendra.in@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><font face="verdana,sans-serif">Thanks Carl & Michael.<br></font><br><div class="gmail_quote">On Mon, Apr 18, 2011 at 10:26 PM, Michael Favia <span dir="ltr"><<a href="mailto:michael.favia@gmail.com"><a href="mailto:michael.favia@gmail.com">michael.favia@gmail.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><div class="im">
On 04/18/2011 11:47 AM, Deva wrote:
<blockquote type="cite"><font face="verdana,sans-serif">One more question.<br>
How to identify in "preprocess_page" function, if the current
loading page is "Taxonomy Term" page.</font><br>
</blockquote></div>
Assuming you actually want to theme and change the page.tpl.php or
add a template suggestion at that level and not at the lower
preprocess_taxonomy_term() level then you would do so the same way
that anyother path is checked. L<br>
<br>
ook in the hook_menu for taxonomy and youll find a section there the
"real drupal path" is defined. Then use the arg() function test for
that path in your preprocess function.<br>
<br>
Alternatively you can add your suggestion ANY time you find this to
be true:<br>
<br>
in_array('page__taxonomy', $variables['theme_hook_suggestions']);<br>
<br>
Please use dpm() and the devel module or a debugger to get more
information.<br>
<pre cols="72">--
Michael Favia <a href="mailto:michael@favish.com" target="_blank"><a href="mailto:michael@favish.com">michael@favish.com</a></a>
tel. 512.669.5650 <a href="http://www.favish.com" target="_blank"><a href="http://www.favish.com">http://www.favish.com</a></a>
</pre>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>:DJ<br><br><br>
</div></blockquote></body></html>