You are here

private function csl_names::_get_category in Bibliography Module 7.2

Same name and namespace in other branches
  1. 7 modules/CiteProc/CSL.inc \csl_names::_get_category()
1 call to csl_names::_get_category()
csl_names::render in modules/CiteProc/CSL.inc

File

modules/CiteProc/CSL.inc, line 855

Class

csl_names

Code

private function _get_category($contributors, $category) {
  $authors = array();
  foreach ($contributors as $author) {
    if ($author['auth_category'] == $category) {
      $authors[] = $author;
    }
  }
  return count($authors) ? $authors : FALSE;
}