You are here

function theme_views_tree_inner in Views tree 6.2

Same name and namespace in other branches
  1. 6 views_tree.module \theme_views_tree_inner()
  2. 7.2 views_tree.module \theme_views_tree_inner()

Inner recursive theme function for views tree theming.

Parameters

$view:

$options:

$row:

$title:

$result: An array representing the raw data returned from the query.

$parent: The id of the parent entry in the call stack.

1 theme call to theme_views_tree_inner()
theme_views_tree in ./views_tree.module
Theme function for the tree style plugin.

File

./views_tree.module, line 75

Code

function theme_views_tree_inner($view, $options, $rows, $title, $result, $parent = NULL) {
  $items = array();
  foreach ($result as $i => $record) {
    if ($record->{$options}['parent_field_property'] == $parent) {
      $items[] = $rows[$i] . call_user_func(__FUNCTION__, $view, $options, $rows, $title, $result, $record->{$options}['main_field_property']);
    }
  }
  return count($items) ? theme('item_list', $items, NULL, $options['type']) : '';
}