function _apa_format_author in Bibliography Module 6
Same name and namespace in other branches
- 6.2 styles/biblio_style_apa.inc \_apa_format_author()
- 7.2 styles/biblio_style_apa.inc \_apa_format_author()
File
- ./
biblio_style_apa.inc, line 99
Code
function _apa_format_author($author) {
$format = $author['prefix'] . ' ' . $author['lastname'];
$format .= !empty($author['firstname']) ? ' ' . drupal_substr($author['firstname'], 0, 1) . '.' : '';
$format .= !empty($author['initials']) ? $author['initials'] . '.' : '';
return $format;
}