Project

General

Profile

Revision 38da4e54

ID38da4e54929476f0af87bc94e92e7db9fdd16066
Parent d5f29731
Child e3235962

Added by Andreas Kohlbecker over 5 years ago

#5887 root nodes available in classification breadcrumbs

View differences:

modules/cdm_dataportal/cdm_taxontree/cdm_taxontree.module
934 934
  $tree_node_callback = $variables['tree_node_callback'];
935 935
  $element_name = $variables['element_name'];
936 936

  
937
  if(isset($tree->records)){
938
    // unwrap from pager object
939
    $tree = $tree->records;
940
  }
941

  
937 942
  if (!is_array($tree)) {
938
    /*
939
    $out = '<ul class="taxon-nodes">';
940
    $out .= '<li>----------------------------NO TREE---------------------------------------</li>';
941
    $out .= '</ul>';
942
    return $out;
943
    */
944 943
    return FALSE;
945 944
  }
946 945

  
......
952 951
  // Append element name to get multiple taxontrees on one page working.
953 952
  $out = '<ul class="taxon-nodes ' . (($element_name) ? ' ' . $element_name : '') . '">';
954 953
  foreach ($tree as $node) {
954
    if($node == null){
955
      continue;
956
    }
955 957
    $out .= theme('cdm_taxontree_node', array(
956 958
      'node' => $node,
957 959
      'filterIncludes' => $filterIncludes,

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)