You are here

function apachesolr_search_collect_children in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 5.2 apachesolr_search.module \apachesolr_search_collect_children()
  2. 6 apachesolr_search.module \apachesolr_search_collect_children()

Generate a list including the field and all its children.

1 call to apachesolr_search_collect_children()
apachesolr_search_nested_facet_items in ./apachesolr_search.module
Recursive function that returns a nested array of facet values for use with theme_item_list().

File

./apachesolr_search.module, line 861
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function apachesolr_search_collect_children($field) {
  $remove[] = $field;
  if (!empty($field['#children'])) {
    foreach ($field['#children'] as $child_field) {
      $remove = array_merge($remove, apachesolr_search_collect_children($child_field));
    }
  }
  return $remove;
}