You are here

function _drupal_install_module in Drupal 6

Callback to install an individual profile module.

Used during installation to install modules one at a time and then enable them, or to install a number of modules at one time from admin/build/modules.

1 call to _drupal_install_module()
_install_module_batch in ./install.php
Batch callback for batch installation of modules.
1 string reference to '_drupal_install_module'
drupal_install_modules in includes/install.inc
Calls the install function and updates the system table for a given list of modules.

File

includes/install.inc, line 340

Code

function _drupal_install_module($module) {
  if (drupal_get_installed_schema_version($module, TRUE) == SCHEMA_UNINSTALLED) {
    module_load_install($module);
    module_invoke($module, 'install');
    $versions = drupal_get_schema_versions($module);
    drupal_set_installed_schema_version($module, $versions ? max($versions) : SCHEMA_INSTALLED);
    return TRUE;
  }
}