function theme_faq_child_category_header in Frequently Asked Questions 5.2
Theme function to format the sub-category header.
Parameters
$term: The child term which a header should be generated for.
$term_image: HTML output containing any taxonomy images attached to the taxonomy term.
$description: Description associated with the taxonomy term / category.
$faq_count: Boolean value controlling whether the number of faq nodes in a category should be displayed or not.
$node_count: Number of nodes for this term, and possibly also the sub-terms.
Return value
HTML formatted header text, with images, node count, etc.
1 theme call to theme_faq_child_category_header()
- faq_view_child_category_headers in ./
faq.module - Helper function to setup the list of sub-categories for the header.
File
- ./
faq.module, line 1827 - The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.
Code
function theme_faq_child_category_header($term, $term_image, $description, $faq_count, $node_count) {
if ($faq_count) {
$header = $term_image . l($term->name, "faq/{$term->tid}") . " ({$node_count}) {$description}";
}
else {
$header = $term_image . l($term->name, "faq/{$term->tid}") . $description;
}
if (!empty($term_image)) {
$header .= '<div class="clear-block"></div>';
}
return $header;
}