Commit 96b71b58 authored by David Lesieur's avatar David Lesieur

Renamed variable for clarity.

parent 3b8cb14a
......@@ -13,10 +13,10 @@
* module, this implementation of hook_faceted_search_collect() acts as the
* master and finds what module to call for each type of field.
*/
function cck_facets_faceted_search_collect(&$facets, $domain, $env_id, $filter, $arg = NULL) {
function cck_facets_faceted_search_collect(&$facets, $domain, $env_id, $selection, $arg = NULL) {
$fields = content_fields();
foreach ($fields as $field) {
if (!isset($filter) || isset($filter[$field['field_name']][1])) {
if (!isset($selection) || isset($selection[$field['field_name']][1])) {
$hook = 'cck_facets_collect';
foreach (module_implements($hook) as $module) {
$function = $module .'_'. $hook;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment