Filter get_categories() for taxonomy term in WordPress
the intention is to show a list of categories, but only those categories that have posts where the custom taxonomy region is set to Rotterdam This is done in the Query Multiple Taxonomies plugin: http://plugins.trac.wordpress.org/browser/query-multiple-taxonomies/trunk/core.php?rev=308185#L10