-- weblinks_get_tree -- $parent: 256 $tree starting from 256: Array ( [0] => stdClass Object ( [tid] => 283 [vid] => 9 [name] => Authorisierung [description] => Links zum Thema FactoryLink-Authorisierung. [weight] => 0 [format] => 2 [language] => und [i18n_tsid] => 0 [depth] => 0 [parents] => Array ( [0] => 256 ) ) ) Has parent - not top level $term: stdClass Object ( [tid] => 283 [vid] => 9 [name] => Authorisierung [description] => Links zum Thema FactoryLink-Authorisierung. [weight] => 0 [format] => 2 [language] => und [i18n_tsid] => 0 [depth] => 1 [parents] => Array ( [0] => 256 ) ) modified depths in $tree: Array ( [0] => stdClass Object ( [tid] => 283 [vid] => 9 [name] => Authorisierung [description] => Links zum Thema FactoryLink-Authorisierung. [weight] => 0 [format] => 2 [language] => und [i18n_tsid] => 0 [depth] => 1 [parents] => Array ( [0] => 256 ) ) ) $parent_term returned by taxonomy_term_load(256): stdClass Object ( [tid] => 256 [vid] => 9 [name] => FactoryLink [description] => Links zu Sites und Themen zu und über das SCADA System FactoryLink. [format] => [weight] => 0 [language] => und [i18n_tsid] => 0 [vocabulary_machine_name] => vocabulary_9 [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [metatags] => Array ( ) [parents] => Array ( [255] => 255 ) [guid] => http://www.igs.ld/cm7/de/taxonomy/term/256 ) isset($parent_term->parents): +++ YES +++ unexpected modified $tree: Array ( [0] => stdClass Object ( [tid] => 256 [vid] => 9 [name] => FactoryLink [description] => Links zu Sites und Themen zu und über das SCADA System FactoryLink. [format] => [weight] => 0 [language] => und [i18n_tsid] => 0 [vocabulary_machine_name] => vocabulary_9 [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [metatags] => Array ( ) [parents] => Array ( [255] => 255 ) [guid] => http://www.igs.ld/cm7/de/taxonomy/term/256 [depth] => 0 ) [1] => stdClass Object ( [tid] => 283 [vid] => 9 [name] => Authorisierung [description] => Links zum Thema FactoryLink-Authorisierung. [weight] => 0 [format] => 2 [language] => und [i18n_tsid] => 0 [depth] => 1 [parents] => Array ( [0] => 256 ) ) ) >>> processing $tree again, to cerate $new_tree $term: stdClass Object ( [tid] => 256 [vid] => 9 [name] => FactoryLink [description] => Links zu Sites und Themen zu und über das SCADA System FactoryLink. [format] => [weight] => 0 [language] => und [i18n_tsid] => 0 [vocabulary_machine_name] => vocabulary_9 [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [metatags] => Array ( ) [parents] => Array ( [255] => 255 ) [guid] => http://www.igs.ld/cm7/de/taxonomy/term/256 [depth] => 0 ) isset($term->parents): TRUE $term->parent first key: +++ NOT ZERO +++ first item: 255 isset($term->parents[0]): >>> FALSE <<< $term: stdClass Object ( [tid] => 283 [vid] => 9 [name] => Authorisierung [description] => Links zum Thema FactoryLink-Authorisierung. [weight] => 0 [format] => 2 [language] => und [i18n_tsid] => 0 [depth] => 1 [parents] => Array ( [0] => 256 ) ) isset($term->parents): TRUE $term->parent first key: 0 as expected first item: 256 isset($term->parents[0]): TRUE $term->parents[0] is not 0. +++ do something here +++ isset($new_tree[$parent]): TRUE add 283 to ->children array $new_tree[256]->children: Array ( [0] => 283 ) returning $new_tree: Array ( [256] => stdClass Object ( [tid] => 256 [vid] => 9 [name] => FactoryLink [description] => Links zu Sites und Themen zu und über das SCADA System FactoryLink. [format] => [weight] => 0 [language] => und [i18n_tsid] => 0 [vocabulary_machine_name] => vocabulary_9 [rdf_mapping] => Array ( [rdftype] => Array ( [0] => skos:Concept ) [name] => Array ( [predicates] => Array ( [0] => rdfs:label [1] => skos:prefLabel ) ) [description] => Array ( [predicates] => Array ( [0] => skos:definition ) ) [vid] => Array ( [predicates] => Array ( [0] => skos:inScheme ) [type] => rel ) [parent] => Array ( [predicates] => Array ( [0] => skos:broader ) [type] => rel ) ) [metatags] => Array ( ) [parents] => Array ( [255] => 255 ) [guid] => http://www.igs.ld/cm7/de/taxonomy/term/256 [depth] => 0 [node_count] => 3 [children] => Array ( [0] => 283 ) [limit] => [sort] => [collapsible] => 1 [collapsed] => [title] => FactoryLink [desc] =>
[image] => ) [283] => stdClass Object ( [tid] => 283 [vid] => 9 [name] => Authorisierung [description] => Links zum Thema FactoryLink-Authorisierung. [weight] => 0 [format] => 2 [language] => und [i18n_tsid] => 0 [depth] => 1 [parents] => Array ( [0] => 256 ) [node_count] => 1 [children] => Array ( ) [limit] => [sort] => [collapsible] => 1 [collapsed] => [title] => Authorisierung [desc] => [image] => ) ) -- weblinks_get_tree -- END