You are here

function ctools_component_features_api in Features 6

Same name and namespace in other branches
  1. 7.2 includes/features.ctools.inc \ctools_component_features_api()
  2. 7 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 92

Code

function ctools_component_features_api($module_name) {
  $api = array();
  foreach (_ctools_features_get_info() as $component => $info) {
    if ($info['module'] === $module_name) {
      $api[$component] = $info;
    }
  }
  return $api;
}