function hook_simplified_modules_hidden_submodules_alter in Simplified Modules 7
Alter the modules that will be auto-enabled when all their dependencies are met.
Parameters
$modules: An array of module names returned from implementations of hook_simplified_modules_hidden_submodules().
See also
hook_simplified_modules_hidden_submodules()
1 invocation of hook_simplified_modules_hidden_submodules_alter()
- simplified_modules_hidden_submodules in ./
simplified_modules.module - Returns modules that are auto-enabled when all their dependencies are met.
File
- ./
simplified_modules.api.php, line 67 - Hooks provided by the Simplified Modules module.
Code
function hook_simplified_modules_hidden_submodules_alter(&$modules) {
// Remove any occurrences of 'xmlsitemap_menu' from the list and make it go
// back to appearing on the modules page like it normally would.
$modules = array_diff($modules, array(
'xmlsitemap_menu',
));
}