You are here

function biblio_get_term_ref_fields in Bibliography Module 7

1 call to biblio_get_term_ref_fields()
biblio_insert_keywords in includes/biblio.keywords.inc
Insert keywords into the database.

File

includes/biblio.keywords.inc, line 471
Contains all keyword related functions.

Code

function biblio_get_term_ref_fields() {
  $termfields = array();
  foreach (field_info_instances('node', 'biblio') as $instance) {
    $field = field_info_field_by_id($instance['field_id']);
    if ($field['type'] == 'taxonomy_term_reference') {
      $termfields[$field['field_name']] = $instance['label'];
    }
  }
  return $termfields;
}