module_load_install

Versions
5 – 7
module_load_install($module)

Load a module's installation hooks.

▾ 6 functions call 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.
system_modules_uninstall in modules/system/system.module
Builds a form of currently disabled modules.

Code

includes/module.inc, line 222

<?php
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;
  }
}
?>
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.