You are here

function _biblio_format_keyword_page in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 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()

Parameters

$filter:

$keywords:

1 call to _biblio_format_keyword_page()
biblio_keyword_page in includes/biblio.pages.inc

File

includes/biblio.pages.inc, line 1519
Functions in the biblio module related to filtering and page generation.

Code

function _biblio_format_keyword_page($filter, $keywords) {
  $header = array();
  $rows = array();
  $output = '';
  $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;
}