function bp_gtm_get_project_cats($project_id)
{
    $tags = '';
    $terms = BP_GTM_Taxon::get_terms_4project(bp_get_current_group_id(), $project_id, 'tag');
    if (!empty($terms)) {
        foreach ($terms as $tag) {
            if ($tag['used'] == '1') {
                $tags .= '|' . stripslashes($tag['name']);
            }
        }
    }
    return $tags;
}