cron has to run after some time of node publishing.I tried like this
function custom_module_cron{
//($updated = node published time)
if(date("Y/m/d H:i:s") == date("Y/m/d H:i:s",$updated+60)){
//code here
}
}
but its not running automatically. Can anybody help ?