<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:windowtext;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:#330066;}
p.spring, li.spring, div.spring
        {mso-style-name:spring;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:9.5pt;
        font-family:"Verdana","sans-serif";
        color:#330066;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=NL-BE link=blue vlink=purple>
<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"'> development-bounces@drupal.org
[mailto:development-bounces@drupal.org] <b>On Behalf Of </b>nan_wich@bellsouth.net<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%'>
<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>
</table>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>