You are here

function _biblio_format_author_page in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 includes/biblio.pages.inc \_biblio_format_author_page()
  2. 7 includes/biblio.pages.inc \_biblio_format_author_page()
  3. 7.2 includes/biblio.pages.inc \_biblio_format_author_page()
1 call to _biblio_format_author_page()
biblio_author_page in ./biblio.pages.inc

File

./biblio.pages.inc, line 1176

Code

function _biblio_format_author_page($filter, $authors) {
  $rows[] = array(
    array(
      'data' => theme('biblio_alpha_line', 'authors', $filter),
      'colspan' => 3,
    ),
  );
  if (count($authors)) {
    for ($i = 0; $i < count($authors); $i += 3) {
      $rows[] = array(
        array(
          'data' => _biblio_format_author($authors[$i]),
        ),
        array(
          'data' => isset($authors[$i + 1]) ? _biblio_format_author($authors[$i + 1]) : '',
        ),
        array(
          'data' => isset($authors[$i + 2]) ? _biblio_format_author($authors[$i + 2]) : '',
        ),
      );
    }
  }

  //$header = array(array('data' => t('There are a total of @count authors !header_ext in the database',array('@count' => count($authors), '!header_ext' => $header_ext)), 'align' =>'center', 'colspan' => 3));
  $output = theme('table', $header, $rows);
  return $output;
}