{$field['field_name']}) && is_array($arg->{$field['field_name']})) { // Iterate through the field's multiple values. foreach ($arg->{$field['field_name']} as $item) { $value = array_shift($item); if ($value != '') { $category = new cck_facet_category($field, $value); $facets[] = new computed_facet($field, array($category)); } } } break; } } return $arg; } /** * A facet for CCK Computed fields. */ class computed_facet extends cck_facet { function computed_facet($field, $active_path = array()) { parent::cck_facet($field, $active_path); } function get_text() { if ($category = $this->get_active_category()) { // Quote and escape the value. return '"'. faceted_search_quoted_query_escape($category->_value) .'"'; } return ''; } }