function simplified_modules_system_info_alter in Simplified Modules 7
Implements hook_system_info_alter().
File
- ./
simplified_modules.module, line 11 - Simplifies the modules page by allowing related modules to be grouped under a single checkbox.
Code
function simplified_modules_system_info_alter(&$info, $file, $type) {
// Hide submodules and dependencies that need to be hidden.
$hidden_modules = array_merge(simplified_modules_hidden_submodules(), simplified_modules_hidden_dependencies());
if (in_array($file->name, $hidden_modules)) {
$info['hidden'] = TRUE;
}
// Sites using this module are expected to have grouped enough modules
// together on the admin/modules page that the normal Drupal organization
// into "packages" isn't very useful. "Core" and "Other" is sufficient.
if ($type == 'module' && !in_array($info['package'], array(
'Core',
'Other',
))) {
$info['package'] = 'Other';
}
}