You are here

function taxonomy_facets_print_names_string in Taxonomy Facets 7.2

Same name and namespace in other branches
  1. 7.3 taxonomy_facets.module \taxonomy_facets_print_names_string()

Formats string at the top of the page, i.e. "Filters: Sony, LCD monitors ..."

Parameters

int $filters_number: Number of filters applied

$names: Filters, i.e Sony, LCD monitors..

Return value

null|string Formated string

1 call to taxonomy_facets_print_names_string()
taxonomy_facets_print_landing_page in ./taxonomy_facets.module
Print the page that displays list of nods when filters are applied.

File

./taxonomy_facets.module, line 913
Taxo Faceted Navigation module code.

Code

function taxonomy_facets_print_names_string($filters_number = 0, $names) {
  if ($filters_number === 0) {
    $names = NULL;
  }
  elseif ($filters_number === 1) {
    $names = '<em>' . t('Filter:') . '</em>' . $names;
  }
  else {
    $names = '<em>' . t('Filters:') . '</em> ' . $names;
  }
  return $names;
}