function privatemsg_cron in Privatemsg 5
Same name and namespace in other branches
- 5.3 privatemsg.module \privatemsg_cron()
- 6.2 privatemsg.module \privatemsg_cron()
- 6 privatemsg.module \privatemsg_cron()
- 7.2 privatemsg.module \privatemsg_cron()
- 7 privatemsg.module \privatemsg_cron()
Implementation of hook_cron().
File
- ./
privatemsg.module, line 268
Code
function privatemsg_cron() {
// Perform these actions just once per day.
if (variable_get('privatemsg_last_cron', 0) < time() - 3600 * 24) {
_privatemsg_prune();
variable_set('privatemsg_last_cron', time());
}
}