"Update Records", 'function' => "myfunction", 'description' => "Dummy example." ); $cron[] = array( 'name' => "Test Email", 'function' => "sendEmail", 'description' => "Sends a test email to ".$pref['siteadminemail'] ); */ return $cron; } function myfunction() { // Whatever code you wish. } function sendEmail() { global $pref; require_once(e_HANDLER."mail.php"); $message = "Your Cron Job worked correctly. Sent at ".date("r")."."; sendemail($pref['siteadminemail'], "e107 - TEST Email Sent by cron.".date("r"), $message, $pref['siteadmin'],$pref['siteadminemail'], $pref['siteadmin']); } } ?>