There are alot of guides that teaches you how to hide fieldgroups with hook_form_alterfunction. However, those only works on in-built fieldgroups, such as Author Information.

Here's a very useful function that actually hides custom fieldgroups which you have created from the Field UI:

<?php
 field_group_hide_field_groups($form, array('group_MACHINE_NAME')); 
?>
Published on 9 February 2014 - 7:31am