You are here

function _unused_modules_add_module_info in Unused Modules 7

Same name and namespace in other branches
  1. 6 unused_modules.module \_unused_modules_add_module_info()

Add module info.

1 call to _unused_modules_add_module_info()
_unused_modules_get_available_modules in ./unused_modules.inc
Returns an array of available modules.

File

./unused_modules.inc, line 109
Common Unused Modules functionality.

Code

function _unused_modules_add_module_info(&$modules) {
  foreach ($modules as &$module) {

    // Set module_path.
    $module->module_path = str_replace("/" . $module->filename, "", $module->uri);
  }
}