function hook_simplified_modules_hidden_dependencies in Simplified Modules 7
Define modules that will be auto-enabled whenever any dependents modules are turned on.
These are typically modules which are required for a major site feature to work correctly, but which might be confusing if exposed on the modules page (for example, an API-only module).
Any modules which you return from this hook will be hidden from the modules page and turned on automatically whenever another module that depends on them is enabled. (They will also be turned off automatically when they are no longer needed.)
Return value
An array of module names.
See also
hook_simplified_modules_hidden_dependencies_alter()
1 function implements hook_simplified_modules_hidden_dependencies()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_simplified_modules_hidden_dependencies()
- 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 90 - Hooks provided by the Simplified Modules module.
Code
function hook_simplified_modules_hidden_dependencies() {
return array(
// Prevent the Date API module from appearing on the Modules page, but turn
// it on automatically whenever any date-related module that depends on it
// is enabled.
'date_api',
// The modules listed below are the full list of requirements for the
// Webform Alternate UI module (an integration module which provides an
// alternate interface for editing webforms). By listing them here, they
// will all be hidden from the Modules page, and when the user enables
// Webform Alternate UI, all its requirements will automatically be turned
// on in one click.
'webform',
'form_builder',
'form_builder_webform',
'options_element',
'ux_elements',
);
}