You are here

function views_features_export_options in Features 6

Implementation of hook_features_export_options().

File

includes/features.views.inc, line 67

Code

function views_features_export_options() {
  $enabled_views = array();
  $views = views_get_all_views();
  foreach ($views as $view) {
    if (!isset($view->disabled) || !$view->disabled) {
      $enabled_views[$view->name] = $view->name;
    }
  }
  ksort($enabled_views);
  return $enabled_views;
}