function biblio_get_contributor_category in Bibliography Module 7.2
Same name and namespace in other branches
- 7 includes/biblio.contributors.inc \biblio_get_contributor_category()
10 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_ieee in styles/
biblio_style_ieee.inc - Apply a bibliographic style to the node
File
- includes/
biblio.contributors.inc, line 16
Code
function biblio_get_contributor_category($contributors, $category) {
$authors = array();
foreach ($contributors as $author) {
$wrapper = biblio_wrapper($author, 'biblio_contributor');
if ($wrapper->biblio_contributor_category == $category) {
$authors[] = $author;
}
}
return $authors;
}