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