<html><body bgcolor="#FFFFFF"><div>Try this:</div><div><br></div><div><a href="http://drupal.org/project/moduleweight">http://drupal.org/project/moduleweight</a><br><br>Paolo Mainardi<div>CTO Twinbit<br><div>http://www.paolomainardi.com</div></div></div><div><br>Il giorno 24/lug/2009, alle ore 20.22, Peter Droogmans <<a href="mailto:Peter@attiks.com">Peter@attiks.com</a>> ha scritto:<br><br></div><div></div><blockquote type="cite"><div>
<div class="Section1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">The weight of modules can be found in the system table<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:
"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;
font-family:"Tahoma","sans-serif""> <a href="mailto:development-bounces@drupal.org">development-bounces@drupal.org</a>
[mailto:development-bounces@drupal.org] <b>On Behalf Of </b><a href="mailto:nan_wich@bellsouth.net">nan_wich@bellsouth.net</a><br>
<b>Sent:</b> vrijdag 24 juli 2009 18:40<br>
<b>To:</b> development<br>
<b>Subject:</b> SPAM --- [development] Howto: Override $node_url in theme<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody><tr style="height:30.0pt">
<td colspan="3" style="padding:0cm 0cm 0cm 0cm;height:30.0pt">
<p class="MsoNormal"> <o:p></o:p></p>
</td>
</tr>
<tr style="height:225.0pt">
<td width="40" style="width:30.0pt;padding:0cm 0cm 0cm 0cm;height:225.0pt">
<p class="MsoNormal"> <o:p></o:p></p>
</td>
<td valign="top" style="padding:0cm 0cm 0cm 0cm;height:225.0pt">
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066">My module implements template_preprocess_hook, but when it
fires, the $variables['node_url'] is not set yet. I have gone through the
themong guide and tried just about every preprocess hook there is and none of
them has that variable set when I get control.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066">It is set in theme.inc in template_preprocess_node, without
regard as to whether or not it is already set. I even tried
mymodule_preprocess_node, and it is still not set there.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066">The problem may be because my module's weight is -2 due to a
timing problem with the user module. So I am probably getting called before
node.module too.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066">So how can I change that value?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066"> <o:p></o:p></span></p>
</div>
<div id="signature">
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Verdana","sans-serif";
color:#330066">--<br>
Nancy E. Wichmann, PMP <br>
<br>
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King,
Jr.<o:p></o:p></span></p>
</div>
</td>
<td width="40" style="width:30.0pt;padding:0cm 0cm 0cm 0cm;height:225.0pt">
<p class="MsoNormal"> <o:p></o:p></p>
</td>
</tr>
</tbody></table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div></blockquote></body></html>