Commit 514d4a77 authored by David Lesieur's avatar David Lesieur

Domain 'all' in hook_faceted_search_collect() becomes 'facets' to distinguish...

Domain 'all' in hook_faceted_search_collect() becomes 'facets' to distinguish from other types of filters.
parent f2e26e73
......@@ -20,7 +20,7 @@ function date_facets_cck_facets_collect(&$facets, $field, $domain, $env_id, $arg
$category_class = $field['type'] .'_facet_category';
switch ($domain) {
case 'all':
case 'facets':
$facets[] = new $facet_class($field);
break;
......
......@@ -14,7 +14,7 @@ require_once('./'. drupal_get_path('module', 'number_facets') .'/cck_facets.inc'
function number_facets_cck_facets_collect(&$facets, $field, $domain, $env_id, $arg = NULL) {
if ($field['type'] == 'number_decimal' || $field['type'] == 'number_integer') {
switch ($domain) {
case 'all':
case 'facets':
$facets[] = new cck_facet($field);
break;
......
......@@ -14,7 +14,7 @@ require_once('./'. drupal_get_path('module', 'reference_facets') .'/cck_facets.i
function reference_facets_cck_facets_collect(&$facets, $field, $domain, $env_id, $arg = NULL) {
if ($field['type'] == 'nodereference' || $field['type'] == 'userreference') {
switch ($domain) {
case 'all':
case 'facets':
$facets[] = new reference_facet($field);
break;
......
......@@ -14,7 +14,7 @@ require_once('./'. drupal_get_path('module', 'text_facets') .'/cck_facets.inc');
function text_facets_cck_facets_collect(&$facets, $field, $domain, $env_id, $arg = NULL) {
if ($field['type'] == 'text') {
switch ($domain) {
case 'all':
case 'facets':
$facets[] = new text_facet($field);
break;
......
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