<div>As with most mailing lists, no-one can do that but you.</div>
<div>&nbsp;</div>
<div>Here you go: <a href="http://lists.drupal.org/listinfo/support">http://lists.drupal.org/listinfo/support</a><br><br></div>
<div class="gmail_quote">On Fri, Jan 2, 2009 at 10:05 AM, David Stein <span dir="ltr">&lt;<a href="mailto:steinwrites4u@yahoo.com">steinwrites4u@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top">please<br><br>--- On <b>Fri, 1/2/09, Shai Gluskin <i>&lt;<a href="mailto:shai@content2zero.com" target="_blank">shai@content2zero.com</a>&gt;</i></b> wrote:<br>
<blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: Shai Gluskin &lt;<a href="mailto:shai@content2zero.com" target="_blank">shai@content2zero.com</a>&gt;<br>Subject: Re: [support] inter module communication, hooks and dependencies<br>
To: <a href="mailto:support@drupal.org" target="_blank">support@drupal.org</a><br>Date: Friday, January 2, 2009, 9:56 AM<br><br>
<div>Hi Ivan,<br><br>I just looked over your post really quickly. But that quick glance makes me think you are need of one or both of the following modules in addition to nodewords:<br><br>
<div style="MARGIN-LEFT: 40px"><a href="http://drupal.org/project/nodewords_bypath" target="_blank" rel="nofollow">http://drupal.org/project/nodewords_bypath</a><br><a href="http://drupal.org/project/nodewords_nodetype" target="_blank" rel="nofollow">http://drupal.org/project/nodewords_nodetype</a><br>
</div><br>best,<br><br>Shai<br><a href="http://content2zero.com/" target="_blank" rel="nofollow">content2zero</a><br><br>
<div class="gmail_quote">On Fri, Jan 2, 2009 at 9:17 AM, Ivan Sergio Borgonovo <span dir="ltr">&lt;<a href="mailto:mail@webthatworks.it" target="_blank" rel="nofollow">mail@webthatworks.it</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi,<br><br>The actual problem is providing an API to let modules add META in a<br>more structured way so that eg. the same META is not sent 2 times or<br>
module can decide to concatenate further meta or define a<br>&quot;owerwriteability&quot; level.<br><br>I gave a look to nodewords aka Meta tags but I have stuff that<br>aren&#39;t nodes (they aren&#39;t views or taxonomies either) that don&#39;t fit<br>
with the node paradigm too well.<br><br>nodewords provide a hook to &#39;prepare&#39; META but it is on a module<br>base.<br>Nodewords needs to be aware of all the content types (or just pages,<br>menu_hook etc...) it can support (*unless I&#39;m missing something...*)<br>
but actually what know better which are the most suitable meta for a<br>&quot;content&quot; should be the content producer (be it a &quot;node&quot; or just a<br>MENU_CALLBACK).<br>Other modules like nodewords_bypath and _nodetype do some extrawork<br>
to know what actually called the hook.<br>But I&#39;d find myself more comfortable with a different approach:<br>- there is a common API that let me manage META<br>- modules that want to add META use it<br>- when everything is ready drupal_set_html_head get called<br>
<br>The problem is:<br>- the API functions should be ready when other modules call them<br>- drupal_set_html_head($meta) should be called last<br><br>If the weight of my meta module is high, other modules won&#39;t find<br>
the functions.<br>If the weight of my module is low and I put<br>drupal_set_html_head($meta) in the menu hook, drupal_set_html_head<br>will be called before $meta had the chance to be filled by other<br>modules.<br><br>I&#39;d say this is a general common problem but I didn&#39;t find any<br>
&quot;drupalish&quot; way to solve it.<br><br>The easiest (and somehow elegant) way I thought to deal with this<br>problem was to build up 2 modules with different weight):<br>- meta_prepare (that will offer the functions)<br>
- meta_deliver (that will simply call drupal_set_html_head)<br><br>Is there a more drupalish way to deal with dependency and &quot;order of<br>execution&quot; in drupal?<br><br>thanks<br><br>--<br>Ivan Sergio Borgonovo<br>
<a href="http://www.webthatworks.it/" target="_blank" rel="nofollow">http://www.webthatworks.it</a><br><font color="#888888"><br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank" rel="nofollow">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br></div><pre>-- 
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]</pre></blockquote></td></tr></tbody></table><br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</blockquote></div><br>