You are here

function taxo_faceted_navigation_block_view in Taxonomy Facets 7

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

./taxo_faceted_navigation.module, line 222
Taxo Faceted Navigation module code.

Code

function taxo_faceted_navigation_block_view($delta = '') {
  $vid = variable_get("taxo_faceted_navigation_{$delta}_tid", 2);
  $block['subject'] = check_plain(taxonomy_vocabulary_load($vid)->name);
  $block['content'] = taxo_faceted_navigation_get_menu_tree($vid);
  return $block;
}