GetFieldGroupDuplicates() public static method

Get number of group duplicates given field name. The function returns 1 if there are no duplicates (just the original group), 2 if there is one duplicate and so on.
public static GetFieldGroupDuplicates ( integer $postId, $fieldName ) : number
$postId integer post id
return number of groups
/**
 * Get number of group duplicates given field name. The function returns 1
 * if there are no duplicates (just the original group), 2 if there is one
 * duplicate and so on.
 *
 * @param string $fieldName the name of any field in the group
 * @return number of group duplicates 
 */
function getGroupDuplicates($fieldName)
{
    require_once "RCCWP_CustomField.php";
    global $post;
    return RCCWP_CustomField::GetFieldGroupDuplicates($post->ID, $fieldName);
}