function user_import_cron in User Import 6.4
Same name and namespace in other branches
- 8 user_import.module \user_import_cron()
- 5.2 user_import.module \user_import_cron()
- 5 user_import.module \user_import_cron()
- 6.2 user_import.module \user_import_cron()
- 7.3 user_import.module \user_import_cron()
- 7 user_import.module \user_import_cron()
- 7.2 user_import.module \user_import_cron()
Implementation of hook_cron().
File
- ./
user_import.module, line 125 - 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;
}