You are here

function user_import_cron in User Import 6.2

Same name and namespace in other branches
  1. 8 user_import.module \user_import_cron()
  2. 5.2 user_import.module \user_import_cron()
  3. 5 user_import.module \user_import_cron()
  4. 6.4 user_import.module \user_import_cron()
  5. 7.3 user_import.module \user_import_cron()
  6. 7 user_import.module \user_import_cron()
  7. 7.2 user_import.module \user_import_cron()

Implementation of hook_cron().

File

./user_import.module, line 128
Import or update users with data from a comma separated file (csv).

Code

function user_import_cron() {
  module_load_include('inc', 'user_import', 'user_import.import');
  $imports = _user_import_settings_select();
  if (!$imports) {
    return;
  }
  foreach ($imports as $import) {
    if ($import['setting'] == 'test' || $import['setting'] == 'import') {
      _user_import_process($import);
    }
  }
  return;
}