You are here

function module_load_install in Drupal 5

Same name and namespace in other branches
  1. 8 core/includes/module.inc \module_load_install()
  2. 6 includes/module.inc \module_load_install()
  3. 7 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;
  }
}