You are here

function og_views_default_views in Organic groups 6

Same name and namespace in other branches
  1. 5.8 og_views.inc \og_views_default_views()
  2. 5 og_views.inc \og_views_default_views()
  3. 5.2 og_views.inc \og_views_default_views()
  4. 5.3 og_views.inc \og_views_default_views()
  5. 5.7 og_views.inc \og_views_default_views()
  6. 7.2 includes/views/og.views_default.inc \og_views_default_views()
  7. 7 includes/og.views_default.inc \og_views_default_views()

File

modules/og_views/og_views.views_default.inc, line 4

Code

function og_views_default_views() {
  $files = file_scan_directory(drupal_get_path('module', 'og_views') . '/views', '.view');
  foreach ($files as $absolute => $file) {
    require $absolute;
    if (isset($view)) {
      $views[substr($file->name, 3)] = $view;
    }
  }
  return $views;
}