You are here

function _social_install_module_batch in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 social.profile \_social_install_module_batch()
  2. 8 social.profile \_social_install_module_batch()
  3. 8.2 social.profile \_social_install_module_batch()
  4. 8.3 social.profile \_social_install_module_batch()
  5. 8.5 social.profile \_social_install_module_batch()
  6. 8.6 social.profile \_social_install_module_batch()
  7. 8.7 social.profile \_social_install_module_batch()
  8. 8.8 social.profile \_social_install_module_batch()
  9. 10.3.x social.profile \_social_install_module_batch()
  10. 10.0.x social.profile \_social_install_module_batch()
  11. 10.1.x social.profile \_social_install_module_batch()
  12. 10.2.x social.profile \_social_install_module_batch()

Implements callback_batch_operation().

Performs batch installation of modules.

2 string references to '_social_install_module_batch'
social_final_site_setup in ./social.profile
Final setup of Social profile.
social_install_profile_modules in ./social.profile
Installs required modules via a batch process.

File

./social.profile, line 392
Enables modules and site configuration for a social site installation.

Code

function _social_install_module_batch($module, $module_name, &$context) {
  set_time_limit(0);
  \Drupal::service('module_installer')
    ->install($module);
  $context['results'][] = $module;
  $context['message'] = t('Install %module_name module.', [
    '%module_name' => $module_name,
  ]);
}