function include_module_install

7.x misc.inc include_module_install($module, $path)
6.x misc.inc include_module_install($module, $path)
4.x misc.inc include_module_install($module, $path)
5.x misc.inc include_module_install($module, $path)

Find and include the module's .install file, if it exists. Returns TRUE or FALSE if it was able to find & include the file.

4 calls to include_module_install()
system_disable_module in modules/system/system.module
Handles the disabling of the module in question.
system_enable_module in modules/system/system.module
Handles the enabling (and possible installation) of module.
system_handle_uninstall_module in modules/system/system.module
Called from the menu (ie, a URL) this function will uninstall a module.
system_perform_db_updates_perform_batch_operation in modules/system/system.module
Performs db updates ONE module at a time.

File

includes/misc.inc, line 2707
This file contains misc functions for FlightPath

Code

function include_module_install($module, $path) {
  $system_path = trim($GLOBALS ["fp_system_settings"]["file_system_path"]);

  $install_path = $path . "/$module.install";
  if (file_exists($system_path . "/" . $install_path)) {
    require_once ($system_path . "/" . $install_path);
    return TRUE;
  }

  return FALSE;
}