You are here

function biblio_get_db_fields in Bibliography Module 7

Same name and namespace in other branches
  1. 5 biblio.module \biblio_get_db_fields()
  2. 6.2 biblio.module \biblio_get_db_fields()
  3. 6 biblio.module \biblio_get_db_fields()
  4. 7.2 biblio.module \biblio_get_db_fields()
2 calls to biblio_get_db_fields()
biblio_build_query in includes/biblio.pages.inc
Biblio_db_search builds the SQL query which will be used to select and order "biblio" type nodes. The query results are then passed to biblio_show_results for output.
biblio_csv_export_2 in includes/biblio.import.export.inc

File

./biblio.module, line 2087
Bibliography Module for Drupal.

Code

function biblio_get_db_fields() {
  $fields = array();
  $fields[] = 'nid';
  $fields[] = 'vid';
  $fields[] = 'biblio_type';
  $result = db_query('SELECT name FROM {biblio_fields} ', array(), array(
    'fetch' => PDO::FETCH_ASSOC,
  ));
  foreach ($result as $field) {
    $fields[] = $field['name'];
  }
  return $fields;
}