You are here

function privatemsg_cron in Privatemsg 5

Same name and namespace in other branches
  1. 5.3 privatemsg.module \privatemsg_cron()
  2. 6.2 privatemsg.module \privatemsg_cron()
  3. 6 privatemsg.module \privatemsg_cron()
  4. 7.2 privatemsg.module \privatemsg_cron()
  5. 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());
  }
}