function system_get_module_info

Return .info data for modules.

Parameters

string $property: The .info property to retrieve.

Return value

array An array keyed by module name, with the .info file property as values. Only modules with the property specified in their .info file will be returned.

See also

Drupal\Core\Utility\ModuleInfo

2 calls to system_get_module_info()
system_add_module_assets in drupal/core/modules/system/system.module
Adds CSS and JavaScript files declared in module .info files.
_search_get_module_names in drupal/core/modules/search/search.admin.inc
Helper function to get real module names.

File

drupal/core/modules/system/system.module, line 2720
Configuration system that lets administrators modify the workings of the site.

Code

function system_get_module_info($property) {
  static $info;
  if (!isset($info)) {
    $info = new ModuleInfo('system_info', 'cache');
  }
  return $info[$property];
}