Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
taxonomy_get_vocabulary function in taxonomy wrapper module returns array This function in original taxonomy module returns it as object. Change in return value breaks some dependent functions ( i faced the problem in tagadelic module). So this function in wrapper module must return same information as object. I solved this problem by adding the following line of code at the end of the function taxonomy_get_vocabulary in wrapper module.
//return $vocabulary;
foreach($vocabulary as $vockey => $vocvalue){
$vocobject->$vockey = $vocvalue;
}
return $vocobject;
Comments
Comment #1
JirkaRybka CreditAttribution: JirkaRybka commentedDuplicate of #338846: Taxonomy Wrapper 1.26.2.2: taxonomy_get_vocabulary as object instead of array?.