function _apa_format_author in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 styles/biblio_style_apa.inc \_apa_format_author()
- 6 biblio_style_apa.inc \_apa_format_author()
File
- styles/
biblio_style_apa.inc, line 102
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;
}