function _social_install_module_batch in Open Social 8
Same name and namespace in other branches
- 8.9 social.profile \_social_install_module_batch()
- 8.2 social.profile \_social_install_module_batch()
- 8.3 social.profile \_social_install_module_batch()
- 8.4 social.profile \_social_install_module_batch()
- 8.5 social.profile \_social_install_module_batch()
- 8.6 social.profile \_social_install_module_batch()
- 8.7 social.profile \_social_install_module_batch()
- 8.8 social.profile \_social_install_module_batch()
- 10.3.x social.profile \_social_install_module_batch()
- 10.0.x social.profile \_social_install_module_batch()
- 10.1.x social.profile \_social_install_module_batch()
- 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 386 - 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,
]);
}