You are here

function usermerge_load_includes in User Merge 7.2

Calls all includes.

Ideally, this function should call only supplemental includes provided by the module itself, but supplemental includes conflict with includes provided by other modules, making the whole module unreliable quite randomly.

2 calls to usermerge_load_includes()
usermerge_do in ./usermerge.module
Merges two accounts automatically, making decisions on which data should be preserved.
usermerge_invoke_all in ./usermerge.module
Invokes a hook in all enabled modules that implement it.

File

./usermerge.module, line 431
Main file for the User Merge module.

Code

function usermerge_load_includes() {
  foreach (module_list() as $module) {

    // Load MODULE.usermerge.inc files
    if (!($file = module_load_include('inc', $module, $module . '.usermerge'))) {

      // Load supplemental includes only if the module doesn't provide its own implementation
      $file = module_load_include('inc', 'usermerge', 'includes/' . $module . '.usermerge');
    }
  }
}