Same name and namespace in other branches
  1. 6.x includes/module.inc \module_load_install()
  2. 7.x includes/module.inc \module_load_install()
  3. 8.9.x core/includes/module.inc \module_load_install()
  4. 9 core/includes/module.inc \module_load_install()

Load a module's installation hooks.

6 calls to module_load_install()
drupal_install_modules in includes/install.inc
Calls the install function and updates the system table for a given list of modules.
drupal_load_updates in includes/install.inc
Initialize the update system by loading all installed module's .install files.
drupal_uninstall_module in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
module_disable in includes/module.inc
Disable a given set of modules.
module_enable in includes/module.inc
Enable a given list of modules.

... See full list

File

includes/module.inc, line 222
API for loading and interacting with Drupal modules.

Code

function module_load_install($module) {

  // Make sure the installation API is available
  include_once './includes/install.inc';
  $install_file = './' . drupal_get_path('module', $module) . '/' . $module . '.install';
  if (is_file($install_file)) {
    include_once $install_file;
  }
}