{$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 (is_numeric($value)) { $category = new cck_facet_category($field, $value); $facets[] = new cck_facet($field, array($category)); } } } break; } } return $arg; }