Commit 971e2fc0 authored by David Lesieur's avatar David Lesieur

Updated for API changes in Faceted Search.

parent c31c8b38
......@@ -13,7 +13,7 @@
* 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, $selection, $arg = NULL) {
function cck_facets_faceted_search_collect(&$facets, $domain, $env, $selection, $arg = NULL) {
$fields = content_fields();
foreach ($fields as $field) {
if (!isset($selection) || isset($selection[$field['field_name']][1])) {
......@@ -21,10 +21,10 @@ function cck_facets_faceted_search_collect(&$facets, $domain, $env_id, $selectio
foreach (module_implements($hook) as $module) {
$function = $module .'_'. $hook;
if ($domain == 'text') {
$arg = $function($facets, $field, $domain, $env_id, $arg);
$arg = $function($facets, $field, $domain, $env, $arg);
}
else {
$function($facets, $field, $domain, $env_id, $arg);
$function($facets, $field, $domain, $env, $arg);
}
}
}
......
......@@ -8,14 +8,13 @@
module_load_include('inc', 'cck_facets');
// TODO: Support 'todate' column.
// TODO: Timezone handling.
/**
* Implementation of hook_cck_facets_collect().
*/
function date_facets_cck_facets_collect(&$facets, $field, $domain, $env_id, $arg = NULL) {
function date_facets_cck_facets_collect(&$facets, $field, $domain, $env, $arg = NULL) {
if ($field['type'] == 'date' || $field['type'] == 'datestamp') {
$facet_class = $field['type'] .'_facet';
$category_class = $field['type'] .'_facet_category';
......
......@@ -11,7 +11,7 @@ module_load_include('inc', 'cck_facets');
/**
* Implementation of hook_cck_facets_collect().
*/
function number_facets_cck_facets_collect(&$facets, $field, $domain, $env_id, $arg = NULL) {
function number_facets_cck_facets_collect(&$facets, $field, $domain, $env, $arg = NULL) {
if ($field['type'] == 'number_decimal' || $field['type'] == 'number_integer') {
switch ($domain) {
case 'facets':
......
......@@ -11,7 +11,7 @@ module_load_include('inc', 'cck_facets');
/**
* Implementation of hook_cck_facets_collect().
*/
function reference_facets_cck_facets_collect(&$facets, $field, $domain, $env_id, $arg = NULL) {
function reference_facets_cck_facets_collect(&$facets, $field, $domain, $env, $arg = NULL) {
if ($field['type'] == 'nodereference' || $field['type'] == 'userreference') {
switch ($domain) {
case 'facets':
......
......@@ -10,7 +10,7 @@ module_load_include('inc', 'cck_facets');
/**
* Implementation of hook_cck_facets_collect().
*/
function text_facets_cck_facets_collect(&$facets, $field, $domain, $env_id, $arg = NULL) {
function text_facets_cck_facets_collect(&$facets, $field, $domain, $env, $arg = NULL) {
if ($field['type'] == 'text') {
switch ($domain) {
case 'facets':
......
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