"Update Records", 'function' => "myfunction", 'category' => '', 'description' => "Dummy example." ); $cron[] = array( 'name' => "Test Email", 'function' => "sendEmail", 'category' => 'mail', // mail, user, content, notify, backup 'description' => "Sends a test email to ".$pref['siteadminemail'] ); return $cron; } function myfunction() { // Whatever code you wish. e107::getMessage()->add("Executed dummy function within gsitemap/e_cron.php"); return ; } 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']); } } ?>