geo_data_views_data

geo/modules/geo_data/includes/views/geo_data.views.inc, line 5

Versions
6
geo_data_views_data()

Code

<?php
function geo_data_views_data() {
  $data = array();
  return $data; // TODO we're not doing anything with this yet.

  $data['geo_data']['table']['group']  = t('Geospatial Data');

  foreach (geo('tables', '/^content_field/') as $table => $col) {
    $data[$table]['table'] = array(
      'group' => t('Geospatial Data'),
      'base' => array(
        'field' => 'state', // TODO use key column.
        'title' => $table, // TODO use key column.
      ),
    );
  }
  //return $data;
}
?>