You are here

function user_expire_cron in User Expire 7

Same name and namespace in other branches
  1. 8 user_expire.module \user_expire_cron()

Implements hook_cron().

1 call to user_expire_cron()
UserExpireTestCase::testUserExpire in ./user_expire.test

File

./user_expire.module, line 184
Main module file for User expire module.

Code

function user_expire_cron() {

  // Warn the per-role inactivity blocking first, in cases where they get
  // blocked right after at least they will know why.
  watchdog('user_expire', 'Processing per role expiration warning.');
  user_expire_expire_by_role_warning();

  // Then do per-user blocking.
  watchdog('user_expire', 'Processing per user expiration.');
  user_expire_process_per_user_expiration();

  // Then per-role inactivity blocking.
  watchdog('user_expire', 'Processing per role expiration.');
  user_expire_expire_by_role();
  watchdog('user_expire', 'Cron processing finished.');
}