You are here

function _social_uninstall_module_batch in Open Social 8.9

Same name and namespace in other branches
  1. 8 social.profile \_social_uninstall_module_batch()
  2. 8.2 social.profile \_social_uninstall_module_batch()
  3. 8.3 social.profile \_social_uninstall_module_batch()
  4. 8.4 social.profile \_social_uninstall_module_batch()
  5. 8.5 social.profile \_social_uninstall_module_batch()
  6. 8.6 social.profile \_social_uninstall_module_batch()
  7. 8.7 social.profile \_social_uninstall_module_batch()
  8. 8.8 social.profile \_social_uninstall_module_batch()
  9. 10.3.x social.profile \_social_uninstall_module_batch()
  10. 10.0.x social.profile \_social_uninstall_module_batch()
  11. 10.1.x social.profile \_social_uninstall_module_batch()
  12. 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_install_demo_content in ./social.profile
Uses the Social Demo module to install demo content.

File

./social.profile, line 206
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,
  ]);
}