1 install.core.inc _install_module_batch($module, $module_name, &$context)

Batch callback for batch installation of modules.

File

core/includes/install.core.inc, line 2118
API functions for installing Backdrop.

Code

function _install_module_batch($module, $module_name, &$context) {
  // Install and enable the module right away, so that the module will be
  // loaded by backdrop_bootstrap in subsequent batch requests, and other
  // modules possibly depending on it can safely perform their installation
  // steps.
  module_enable(array($module), FALSE);
  $context['results'][] = $module;
  $context['message'] = st('Installed %module module.', array('%module' => $module_name));
}