function biblio_get_db_fields in Bibliography Module 7.2
Same name and namespace in other branches
- 5 biblio.module \biblio_get_db_fields()
- 6.2 biblio.module \biblio_get_db_fields()
- 6 biblio.module \biblio_get_db_fields()
- 7 biblio.module \biblio_get_db_fields()
Gets a list of machine-readable field names
@todo: possibly get rid of this
Return value
array Iterative array of field names
2 calls to biblio_get_db_fields()
- biblio_build_query in includes/
biblio.pages.inc - biblio_csv_export_2 in includes/
biblio.import.export.inc
File
- ./
biblio.module, line 1971
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;
}