-17, 'languages' => -16, 'organization' => -15, 'process' => -14, 'sector' => -13, 'subject' => -12, 'technologies_facilities' => -11, 'Africa' => -6, 'Asia_Pacific' => -5, 'Europe' => -4, 'Latin_America_Caribbean' => -3, 'Middle_East' => -2, 'North_America' => -1, ); $w1 = isset($bundle_weight[$b1]) ? $bundle_weight[$b1] : 0; $w2 = isset($bundle_weight[$b2]) ? $bundle_weight[$b2] : 0; return $w1 - $w2; } // render tags array in a delicioustylia function theme_tags($tags_array, $max_tag_posts, &$max_posts, &$max_tags) { $tot_posts = 0; $tot_tags = 0; foreach($tags_array as $tag => $posts) { $output[] = theme_tag($tag, $posts, $max_tag_posts); $tot_posts += $posts; $tot_tags++; } if($tot_posts > $max_posts) $max_posts = $tot_posts; if($tot_tags > $max_tags) $max_tags = $tot_tags; $ul_html = '