You are here

function og_views_views_data in Organic groups 6.2

Same name and namespace in other branches
  1. 6 modules/og_views/og_views.views.inc \og_views_views_data()

Implementation of hook_views_data().

File

modules/og_views/og_views.views.inc, line 128

Code

function og_views_views_data() {
  $data = array();
  $tables = array(
    'og',
    'og_ancestry',
    'og_uid',
    'og_access_post',
  );
  if (module_exists('og_notifications')) {
    $tables[] = 'og_notifications';
  }
  foreach ($tables as $table) {
    $function = "og_views_data_{$table}";
    $data += $function();
  }
  return $data;
}