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_confirm_db_updates_form_submit in modules/system/system.module
Perform the actual hook_update calls here, send the user to a completed page.
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.

File

includes/misc.inc, line 1865
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;
}