You are here

function flag_features_providing_module in Flag 6.2

Same name and namespace in other branches
  1. 7.3 includes/flag.features.inc \flag_features_providing_module()
  2. 7.2 includes/flag.features.inc \flag_features_providing_module()

Helper function; Retrieve the providing modules defining the flags.

1 call to flag_features_providing_module()
flag_features_export in includes/flag.features.inc
Implements hook_features_export().

File

includes/flag.features.inc, line 83
Features integration for Flag module.

Code

function flag_features_providing_module() {
  $modules = array();
  $hook = 'flag_definitions';
  foreach (module_implements($hook) as $module) {
    foreach (module_invoke($module, $hook) as $key => $value) {
      $modules[$key] = $module;
    }
  }
  return $modules;
}