You are here

function features_get_modules in Features 6

Same name and namespace in other branches
  1. 7.2 features.module \features_get_modules()
  2. 7 features.module \features_get_modules()

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.

10 calls to features_get_modules()
dependencies_features_export_options in includes/features.features.inc
Implementation of hook_features_export_options().
features_admin_form in ./features.admin.inc
admin/build/features page callback.
features_export_build_form_submit in ./features.admin.inc
Submit handler for features_export_form_build().
features_export_prepare in ./features.export.inc
Prepare 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.

... See full list

File

./features.module, line 366
Module file for the features module, which enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together statisfy a certain use-case.

Code

function features_get_modules($name = NULL, $reset = FALSE) {
  return features_get_info('module', $name, $reset);
}