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