function _farm_install_module_batch in farmOS 2.x
Implements callback_batch_operation().
Performs batch installation of farmOS modules.
1 string reference to '_farm_install_module_batch'
- farm_install_modules in ./
farm.install - Installs farmOS modules via a batch process.
File
- ./
farm.install, line 141 - Install, update and uninstall functions for the farmOS installation profile.
Code
function _farm_install_module_batch($module, $module_name, &$context) {
\Drupal::service('module_installer')
->install([
$module,
], TRUE);
$context['results'][] = $module;
$context['message'] = t('Installed %module module.', [
'%module' => $module_name,
]);
}