You are here

function biblio_get_db_fields in Bibliography Module 5

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_get_db_fields()
  2. 6 biblio.module \biblio_get_db_fields()
  3. 7 biblio.module \biblio_get_db_fields()
  4. 7.2 biblio.module \biblio_get_db_fields()
3 calls to biblio_get_db_fields()
biblio_db_search in ./biblio.module
biblio_insert in ./biblio.module
Implementation of hook_insert().
biblio_update in ./biblio.module
Implementation of hook_update().

File

./biblio.module, line 3034

Code

function biblio_get_db_fields() {
  $fields = array();
  $fields[] = 'nid';
  $fields[] = 'vid';
  $fields[] = 'biblio_type';
  $result = db_query('SELECT name FROM {biblio_fields} ');
  while ($field = db_fetch_array($result)) {
    $fields[] = $field['name'];
  }
  return $fields;
}