You are here

function _ieee_format_author in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 styles/biblio_style_ieee.inc \_ieee_format_author()
  2. 6 biblio_style_ieee.inc \_ieee_format_author()

File

styles/biblio_style_ieee.inc, line 105

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;
}