function diff_requirements in Diff 5
Same name and namespace in other branches
- 8 diff.install \diff_requirements()
- 5.2 diff.module \diff_requirements()
Implementation of hook_requirements(). Checks if the diff modules is loaded after the node module in the hook ordering.
File
- ./
diff.module, line 23
Code
function diff_requirements($phase) {
// Don't check when installing
if ($phase == 'install') {
return;
}
$modules = array_keys(module_list());
if (array_search('diff', $modules) <= array_search('node', $modules)) {
diff_autoadjust();
}
}