You are here

function _biblio_format_keyword_page in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.pages.inc \_biblio_format_keyword_page()
  2. 6 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 includes/biblio.pages.inc

File

includes/biblio.pages.inc, line 1473
Copyright (C) 2006-2011 Ron Jerome.

Code

function _biblio_format_keyword_page($uri, $filter, $keywords) {
  $rows[] = array(
    array(
      'data' => theme('biblio_alpha_line', array(
        'type' => 'keywords',
        'current' => $filter,
        'path' => $uri['path'],
      )),
      'colspan' => 3,
    ),
  );
  for ($i = 0; $i < count($keywords); $i += 3) {
    $rows[] = array(
      array(
        'data' => _biblio_format_keyword($uri, $keywords[$i]),
      ),
      array(
        'data' => isset($keywords[$i + 1]) ? _biblio_format_keyword($uri, $keywords[$i + 1]) : '',
      ),
      array(
        'data' => isset($keywords[$i + 2]) ? _biblio_format_keyword($uri, $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', array(
    'rows' => $rows,
  ));
  return $output;
}