You are here

function dependencies_features_export_options in Features 7

Same name and namespace in other branches
  1. 6 includes/features.features.inc \dependencies_features_export_options()
  2. 7.2 includes/features.features.inc \dependencies_features_export_options()

Implements hook_features_export_options().

File

includes/features.features.inc, line 19

Code

function dependencies_features_export_options() {

  // Excluded modules.
  $excluded = drupal_required_modules();
  $options = array();
  foreach (features_get_modules() as $module_name => $info) {
    if (!in_array($module_name, $excluded) && $info->status && !empty($info->info)) {
      $options[$module_name] = $info->info['name'];
    }
  }
  return $options;
}