You are here

function biblio_get_contributor_category in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 includes/biblio.contributors.inc \biblio_get_contributor_category()

Parameters

array $contributors:

int $category:

Return value

array $authors

13 calls to biblio_get_contributor_category()
biblio_style_ama in styles/biblio_style_ama.inc
biblio_style_apa in styles/biblio_style_apa.inc
Apply a bibliographic style to the node.
biblio_style_chicago in styles/biblio_style_chicago.inc
Apply a bibliographic style to the node.
biblio_style_classic in styles/biblio_style_classic.inc
Apply a bibliographic style to the node.
biblio_style_cse in styles/biblio_style_cse.inc
Apply a bibliographic style to the node.

... See full list

File

includes/biblio.contributors.inc, line 56

Code

function biblio_get_contributor_category($contributors, $category) {
  $authors = array();
  foreach ($contributors as $author) {
    if ($author['auth_category'] == $category) {
      $authors[] = $author;
    }
  }
  return $authors;
}