<p>Try the rules module.</p>
<p>Thanks,<br>
Steve</p>
<div class="gmail_quote">On May 20, 2011 7:14 AM, &quot;Seydi ndiaye&quot; &lt;<a href="mailto:seydina@seydinet.com">seydina@seydinet.com</a>&gt; wrote:<br type="attribution">&gt; Hi I am a newbie in drupal module developement, I have my website<br>
&gt; <a href="http://seydinet.com">http://seydinet.com</a><br>&gt; made with Managing News and now I just want create a module who if I run my<br>&gt; cron post automaticly a tweet with a message telling for exemple &quot;4news item<br>
&gt; added in <a href="http://seydinet.com">seydinet.com</a>&quot;<br>&gt; So I create a module directory name seydi, I add both file <a href="http://seydi.info">seydi.info</a> and<br>&gt; seydi.module. I have no problem with editing <a href="http://seydi.info">seydi.info</a> but the big deal is<br>
&gt; with seydi.module.<br>&gt; I start by implementing hook_cron() then I have to implement the code who<br>&gt; gonna post the tweet and I dont know how to do that<br>&gt; Here is the begining of my code<br>&gt; <br>&gt; &lt;?php<br>
&gt; /*<br>&gt; implementation de hook_cron<br>&gt; */<br>&gt; <br>&gt; function seydi_cron(){<br>&gt; //watchdog(&#39;seydi&#39;, &#39;my module just add something in cron&#39;, array(),<br>&gt; WATCHDOG_DEBUG);<br>&gt;  // db stuff<br>
&gt; if (date(&#39;G&#39;, time()) == &#39;19&#39;){<br>&gt; //tweet<br>&gt;  }<br>&gt; }<br>&gt; <br>&gt; Thanks<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Seydina Mouhamadou Ndiaye<br>&gt; Web Developper (drupal, java)<br>&gt; Open Source Advocate<br>
&gt; <a href="http://seydinet.com">http://seydinet.com</a><br>&gt; &lt;<a href="http://seydinet.com/">http://seydinet.com/</a>&gt;<a href="http://twitter.com/NattySeydi">http://twitter.com/NattySeydi</a>&lt;<a href="http://twitter.com/#%21/NattySeydi">http://twitter.com/#%21/NattySeydi</a>&gt;<br>
</div>