function features_get_modules in Features 7.2
Same name and namespace in other branches
- 6 features.module \features_get_modules()
- 7 features.module \features_get_modules()
Return a module 'object' including .info information.
Parameters
string|null $name: (optional) The name of the module to retrieve information for. If omitted, an array of all available modules will be returned.
bool $reset: (optional) If TRUE, the cache will be reset before fetching.
Return value
\stdClass[]|\stdClass|false If $name is NULL: $[$module] = $module_info_object If $name is not NULL: A specific module info object. If no matching module is found, FALSE is returned.
11 calls to features_get_modules()
- dependencies_features_export_options in includes/
features.features.inc - Implements hook_features_export_options().
- features_admin_form in ./
features.admin.inc - Form builder for 'admin/structure/features'.
- features_export_build_form_submit in ./
features.admin.inc - First submit handler 'Generate feature' and 'Download feature' buttons.
- features_export_prepare in ./
features.export.inc - Prepares a feature export array into a finalized info array.
- features_export_render in ./
features.export.inc - Render feature export into an array representing its files.
File
- ./
features.module, line 619 - Main *.module file for the 'features' module.
Code
function features_get_modules($name = NULL, $reset = FALSE) {
return features_get_info('module', $name, $reset);
}