You are here

function _biblio_format_keyword_page in Bibliography Module 6

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

File

./biblio.pages.inc, line 1260

Code

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

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