Hi I am a newbie in drupal module developement, I have my website <a href="http://seydinet.com/" target="_blank">http://seydinet.com</a> <div id=":10v">made
with Managing News and now I just want create a module who if I run my
cron post automaticly a tweet with a message telling for exemple "4news
item added in <a href="http://seydinet.com/" target="_blank">seydinet.com</a>"<div>
So I create a module directory name seydi, I add both file <a href="http://seydi.info/" target="_blank">seydi.info</a> and seydi.module. I have no problem with editing <a href="http://seydi.info/" target="_blank">seydi.info</a> but the big deal is with seydi.module.</div>
<div>I start by implementing hook_cron() then I have to implement the code who gonna post the tweet and I dont know how to do that</div><div>Here is the begining of my code</div><div><br></div><div><div><?php</div><div>
/*</div><div>implementation de hook_cron</div><div>*/</div><div><br></div><div>function seydi_cron(){</div><div><span style="white-space:pre-wrap">        </span>//watchdog('seydi', 'my module just add something in cron', array(), WATCHDOG_DEBUG);</div>
<div><span style="white-space:pre-wrap">        </span>// db stuff</div><div><span style="white-space:pre-wrap">        </span>if (date('G', time()) == '19'){</div><div><span style="white-space:pre-wrap">        </span>//tweet</div>
<div><span style="white-space:pre-wrap">        </span></div><div>}</div><div>}</div><div><br></div>Thanks</div></div><br clear="all"><br>-- <br>Seydina Mouhamadou Ndiaye<div>Web Developper (drupal, java)</div><div>Open Source Advocate</div>
<div><a href="http://seydinet.com/" target="_blank">http://seydinet.com</a></div><div><a href="http://seydinet.com/" target="_blank"></a><a href="http://twitter.com/#%21/NattySeydi" target="_blank">http://twitter.com/NattySeydi</a> </div>
<br>