You are here

function biblio_views_tables in Bibliography Module 5

File

./biblio.module, line 3381

Code

function biblio_views_tables() {
  $table = views_new_table('biblio', 'internal', 'node', 'vid', 'vid');
  $result = db_query('SELECT name,title FROM {biblio_fields} ');
  while ($field = db_fetch_array($result)) {
    views_table_add_field($table, $field['name'], "Biblio: " . $field['title'], "", array(
      'sortable' => true,
      'notafield' => false,
    ));
  }
  $tables['biblio'] = $table;
  $table = views_new_table('biblio_types', 'internal', 'biblio', 'tid', 'tid');
  $tables['biblio_types'] = $table;
  return $tables;
}