function _unused_modules_add_module_info in Unused Modules 6
Same name and namespace in other branches
- 7 unused_modules.inc \_unused_modules_add_module_info()
Add module info.
1 call to _unused_modules_add_module_info()
- _unused_modules_get_available_modules in ./
unused_modules.module - Returns an array of available modules.
File
- ./
unused_modules.module, line 269 - This module lists modules and projects that are unused.
Code
function _unused_modules_add_module_info(&$modules) {
foreach ($modules as &$module) {
// @drupal-6 backport: use module filename for uri.
$module->uri = $module->filename;
// Set module_path.
$module->module_path = str_replace("/" . $module->basename, "", $module->uri);
}
}