You are here

function diff_autoadjust in Diff 5

Same name and namespace in other branches
  1. 5.2 diff.module \diff_autoadjust()

Adjust the module weights for diff to load after node module.

1 call to diff_autoadjust()
diff_requirements in ./diff.module
Implementation of hook_requirements(). Checks if the diff modules is loaded after the node module in the hook ordering.

File

./diff.module, line 63

Code

function diff_autoadjust() {
  $modules = array_keys(module_list());
  if (array_search('diff', $modules) <= array_search('node', $modules)) {
    module_load_install('diff');
    diff_set_weight();
  }
}