function ctools_component_features_api in Features 7
Same name and namespace in other branches
- 6 includes/features.ctools.inc \ctools_component_features_api()
- 7.2 includes/features.ctools.inc \ctools_component_features_api()
Master implementation of hook_features_api() for all ctools components.
Note that this master hook does not use $component like the others, but uses the component module's namespace instead.
File
- includes/
features.ctools.inc, line 116
Code
function ctools_component_features_api($module_name) {
$api = array();
foreach (_ctools_features_get_info() as $component => $info) {
// if module owner is set to "ctools" we need to compare the component
if ($info['module'] == $module_name || $info['module'] === 'ctools' && $component == $module_name) {
$api[$component] = $info;
}
}
return $api;
}