function taxonomy_facets_get_array_element in Taxonomy Facets 7.2
Same name and namespace in other branches
- 7.3 taxonomy_facets.module \taxonomy_facets_get_array_element()
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 taxonomy_facets_get_array_element()
- taxonomy_facets_build_url_alias in ./
taxonomy_facets.module - Build a URL to be used in the menu item.
File
- ./
taxonomy_facets.module, line 410 - Taxo Faceted Navigation module code.
Code
function taxonomy_facets_get_array_element($vid, $filters) {
foreach ($filters as $fil) {
if ($fil['vid'] == $vid) {
return $fil;
}
}
return NULL;
}