function configuration_get_modules in Configuration Management 7
Return a module 'object' including .info information.
Parameters
$name: The name of the module to retrieve information for. If ommitted, an array of all available modules will be returned.
$reset: Whether to reset the cache.
Return value
If a module is request (and exists) a module object is returned. If no module is requested info for all modules is returned.
4 calls to configuration_get_modules()
- configuration_export_prepare in ./
configuration.export.inc - Prepare a feature export array into a finalized info array.
- dependencies_configuration_export_options in includes/
configuration.features.inc - Implements hook_configuration_export_options().
- _configuration_export_maximize_dependencies in ./
configuration.export.inc - Iterates over a list of dependencies and maximize the list of modules.
- _configuration_export_minimize_dependencies in ./
configuration.export.inc - Iterates over a list of dependencies and kills modules that are captured by other modules 'higher up'.
File
- ./
configuration.module, line 493 - Module file for the configuration module, which enables the capture and management of configuration in Drupal.
Code
function configuration_get_modules($name = NULL, $reset = FALSE) {
return configuration_get_info('module', $name, $reset);
}