function hook_cron
Search API
This hook is called every time the system cron is run.
Modules should place code here which is meant to be run on a schedule.
2 functions implement hook_cron()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- system_perform_run_cron in modules/
system/ system.module - Called from menu, will run hook_cron() for all modules.
- update_status_cron in modules/
update_status/ update_status.module - Implementation of hook_cron()
File
- includes/
hook.api.php, line 109 - Lists all available hooks within FlightPath's core code.
Code
function hook_cron() {
// Example: check for students who have dropped, and email their advisors.
}