You are here

function taxo_faceted_navigation_get_array_element in Taxonomy Facets 7

Utility function to extract filter from array of filters.

For given vid, return filter element with vid equal to given vid.

Parameters

integer $vid: Vocabular id

array $filters: Array of filters.

Return value

array Array of info about particular filter.

1 call to taxo_faceted_navigation_get_array_element()
taxo_faceted_navigation_build_url_alias in ./taxo_faceted_navigation.module
Build a URL to be used in the menu item.

File

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

Code

function taxo_faceted_navigation_get_array_element($vid, $filters) {
  foreach ($filters as $fil) {
    if ($fil['vid'] == $vid) {
      return $fil;
    }
  }
  return NULL;
}