public GetAssignedCategoriesString ( $customWritePanel ) |
function GetAssignedCategoriesString($customWritePanel)
{
$results = RCCWP_CustomWritePanel::GetAssignedCategories($customWritePanel);
$str = '';
foreach ($results as $r) {
$str .= $r->cat_name . ', ';
}
$str = substr($str, 0, strlen($str) - 2);
// deletes last comma and whitespace
return $str;
}