_drupal_install_module

Versions
6 – 7
_drupal_install_module($module)

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.

Code

includes/install.inc, line 340

<?php
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;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.