function hook_simplified_modules_hidden_dependencies_alter in Simplified Modules 7
Alter the modules that will be auto-enabled whenever any dependents modules are turned on.
Parameters
$modules: An array of module names returned from implementations of hook_simplified_modules_hidden_dependencies().
See also
hook_simplified_modules_hidden_dependencies()
1 invocation of hook_simplified_modules_hidden_dependencies_alter()
- simplified_modules_hidden_dependencies in ./
simplified_modules.module - Returns modules that are auto-enabled whenever any dependents are enabled.
File
- ./
simplified_modules.api.php, line 120 - Hooks provided by the Simplified Modules module.
Code
function hook_simplified_modules_hidden_dependencies_alter(&$modules) {
// Remove any occurrences of 'webform' from the list and make the Webform
// module go back to appearing on the modules page like it normally would.
$modules = array_diff($modules, array(
'webform',
));
}