<meta http-equiv="content-type" content="text/html; charset=utf-8">Hi I am a newbie in drupal module developement, I have my website <a href="http://seydinet.com/">http://seydinet.com</a> 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">seydinet.com</a>"<div>
So I create a module directory name seydi, I add both file <a href="http://seydi.info">seydi.info</a> and seydi.module. I have no problem with editing <a href="http://seydi.info">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 class="Apple-tab-span" style="white-space: pre; ">        </span>//watchdog('seydi', 'my module just add something in cron', array(), WATCHDOG_DEBUG);</div>
<div><span class="Apple-tab-span" style="white-space: pre; ">        </span>// db stuff</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>if (date('G', time()) == '19'){</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>//tweet</div>
<div><span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div>}</div><div>}</div><div><br></div>Thanks</div><br>-- <br><span style="font-family:arial, sans-serif;font-size:12px">Seydina Mouhamadou Ndiaye dit "Nattyseydi" <br>
Administrateur Réseaux </span><div><span style="font-family:arial, sans-serif;font-size:12px">Montage Vidéos, Etudiant en Java, </span></div><div><span style="font-family:arial, sans-serif;font-size:12px">Membres de DakarLug, Gtug-dakar <br>
Tel por: 77-512-35-00, fixe: 33-824-80-80 </span></div><div><span style="font-family:arial, sans-serif;font-size:12px"><a href="http://nattyseydi.blogspot.com" target="_blank">http://nattyseydi.blogspot.com</a></span></div>
<div><a href="http://twitter.com/NattySeydi" target="_blank">http://twitter.com/NattySeydi</a></div><div><a href="http://www.facebook.com/nattyseydi" target="_blank">http://www.facebook.com/nattyseydi</a></div><div style="text-align:left">
<font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="3"><span style="border-collapse:collapse;font-size:11px;line-height:16px"><br></span></font></div><div><font color="#666666" face="'Lucida Grande', sans-serif" size="3"><span style="font-size:11px;line-height:16px"><br>
</span></font></div><br>