function features_get_features in Features 7.2
Same name and namespace in other branches
- 6 features.module \features_get_features()
- 7 features.module \features_get_features()
Gets a list of module info objects that are features.
Parameters
string|null $name: (optional) Name of a feature module.
bool $reset: (optional) If TRUE, the cache will be cleared 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.
18 calls to features_get_features()
- dependencies_features_rebuild in includes/
features.features.inc - Implements hook_features_rebuild(). Ensure that all of a feature's dependencies are enabled.
- drush_features_diff_all in ./
features.drush.inc - Diff all enabled features that are not in their default state.
- drush_features_list in ./
features.drush.inc - Drush command callback for 'features-list'.
- drush_features_revert_all in ./
features.drush.inc - Drush command callback for 'features-revert-all'.
- drush_features_update in ./
features.drush.inc - Drush command callback for 'features-update'.
1 string reference to 'features_get_features'
- features_update_6101 in ./
features.install - Update 6101: Set codestate signature for all features.
File
- ./
features.module, line 796 - Main *.module file for the 'features' module.
Code
function features_get_features($name = NULL, $reset = FALSE) {
return features_get_info('feature', $name, $reset);
}