You are here

function taxonomy_facets_block_view in Taxonomy Facets 7.2

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

Generate blocks with menu items used for filtering.

When user adds particular taxonomy as "taxo filter" to block this function prints out menu for chosen taxonomy.

Parameters

integer $delta: Delta (identifier) of the filter.

Return value

array Block title and content.

File

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

Code

function taxonomy_facets_block_view($delta = '') {
  $vid = variable_get("taxonomy_facets_{$delta}_tid", 1);
  $block['subject'] = check_plain(taxonomy_vocabulary_load($vid)->name);
  $block['content'] = taxonomy_facets_get_menu_tree($vid);
  return $block;
}