function services_security_setup_batch in Services 7.3
2 calls to services_security_setup_batch()
File
- ./
services.module, line 28 - Provides a generic but powerful API for web services.
Code
function services_security_setup_batch($op, $drush = FALSE) {
switch ($op) {
case 'services_security_update_reset_users_since_date':
services_security_update_reset_users_since_date();
services_security_user_update_finish();
break;
case 'services_security_update_reset_users_with_password_one':
batch_set(services_security_update_reset_users_with_password_one());
if ($drush) {
$batch =& batch_get();
//Because we are doing this on the back-end, we set progressive to false.
$batch['progressive'] = FALSE;
//Start processing the batch operations.
drush_backend_batch_process();
}
break;
case 'services_security_update_do_nothing':
services_security_user_update_finish();
break;
}
}