function _social_uninstall_module_batch in Open Social 8.7
Same name and namespace in other branches
- 8.9 social.profile \_social_uninstall_module_batch()
- 8 social.profile \_social_uninstall_module_batch()
- 8.2 social.profile \_social_uninstall_module_batch()
- 8.3 social.profile \_social_uninstall_module_batch()
- 8.4 social.profile \_social_uninstall_module_batch()
- 8.5 social.profile \_social_uninstall_module_batch()
- 8.6 social.profile \_social_uninstall_module_batch()
- 8.8 social.profile \_social_uninstall_module_batch()
- 10.3.x social.profile \_social_uninstall_module_batch()
- 10.0.x social.profile \_social_uninstall_module_batch()
- 10.1.x social.profile \_social_uninstall_module_batch()
- 10.2.x social.profile \_social_uninstall_module_batch()
Implements callback_batch_operation().
Performs batch uninstallation of modules.
1 string reference to '_social_uninstall_module_batch'
- social_final_site_setup in ./
social.profile - Final setup of Social profile.
File
- ./
social.profile, line 414 - Enables modules and site configuration for a social site installation.
Code
function _social_uninstall_module_batch($module, $module_name, &$context) {
set_time_limit(0);
\Drupal::service('module_installer')
->uninstall($module);
$context['results'][] = $module;
$context['message'] = t('Uninstalled %module_name module.', [
'%module_name' => $module_name,
]);
}